Skip to main content
POST
/
wallet
/
fee
Estimate fee
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
  }
}

Authorizations

x-service-key
string
header
required

Service key for API authentication

Body

application/json
wallet_id
string
required

Unique identifier for the wallet

Pattern: ^[a-f0-9]{24}$
amount
number
required

Transfer amount to estimate fee for

Required range: x > 0
asset
string
required

Asset to transfer

Response

Wallet transfer fee estimated successfully

success
boolean
required
message
string
required
timestamp
string<date-time>
required
data
object
required