curl --request POST \
--url https://api.onswitch.xyz/wallet/fee \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"wallet_id": "699a6555fd4cab59e6175f79",
"amount": 10,
"asset": "base:usdc"
}
'{
"success": true,
"message": "Wallet transfer fee estimated successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"fee": 0.01
}
}Estimate the network fee for transferring a specific asset from a wallet.
curl --request POST \
--url https://api.onswitch.xyz/wallet/fee \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"wallet_id": "699a6555fd4cab59e6175f79",
"amount": 10,
"asset": "base:usdc"
}
'{
"success": true,
"message": "Wallet transfer fee estimated successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"fee": 0.01
}
}Service key for API authentication