v1

latestOpenAPI 3.1.02026-07-26165182724.7 KB

Get Withdrawal Fee Estimate

Get a fee estimate for an onchain withdrawal without triggering a withdrawal

post/wallets/send/initiate/onchain/fee-estimate

Headers

api-keystring required

api-key is available on the dashboard

Authorizationstring required

Request body

userIdstring required

The Id of the user who is sending this transaction

sourceAccountIdstring required

The Id of the account to debit

whitelistedAddressIdstring required

The Id of the whitelisted destination

amountstring required

The amount denominated in the smallest divisible unit of the sending currency. For example: cents or satoshis

fixedFeestring

Optional fixedFee in Euro cents to override the default application fee configuration. This amount can only be <= the default configured amount for this transaction type.

percentFeeBpsstring

Optional percentage fee in bps to override the default application fee configuration. This amount can only be <= the default configured amount for this transaction type.

Response

200

totalFeestring
networkFeestring
ourFeestring
theirFeestring
feeCurrencystring
gasLimitstring
gasPricestring

Example response

{
  "totalFee": "398",
  "networkFee": "1662779116152000",
  "ourFee": "279",
  "theirFee": "119",
  "feeCurrency": "USDT",
  "gasLimit": "84000",
  "gasPrice": "15.014",
  "fixedFeeDetails": {
    "amount": "104",
    "exchangeRate": "0.96",
    "appliedFeeCents": "100"
  },
  "percentageFeeDetails": {
    "amount": "15",
    "appliedFeeBps": "100"
  }
}