curl --request POST \
--url https://api.onswitch.xyz/wallet/fee \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"wallet_id": "68d4f2a91eb37c15b8e3a4f7",
"amount": 10,
"asset": "base:usdc"
}
'{
"success": true,
"message": "Wallet transfer fee estimated successfully",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": {
"estimated_fee": 0.18316
}
}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": "68d4f2a91eb37c15b8e3a4f7",
"amount": 10,
"asset": "base:usdc"
}
'{
"success": true,
"message": "Wallet transfer fee estimated successfully",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": {
"estimated_fee": 0.18316
}
}Documentation Index
Fetch the complete documentation index at: https://docs.onswitch.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Service key for API authentication
Unique identifier for the wallet
^[a-f0-9]{24}$Transfer amount to estimate fee for
x > 0base:usdc, solana:usdc, solana:usdt, ethereum:usdc, ethereum:usdt, polygon:usdc, polygon:usdt, bsc:usdc, bsc:usdt, arbitrum:usdc, optimism:usdc, gnosis:usdc, gnosis:usdt, arbitrum:usdt, avalanche:usdc, monad:usdc, optimism:usdt, monad:usdt, plasma:usdt, avalanche:usdt, tron:usdt, linea:usdt, mantle:usdt, hyperevm:usdt, berachain:usdt, linea:usdc, berachain:usdc, sonic:usdc, base:cngn, bsc:cngn