v1

latestOpenAPI 3.1.02026-07-26165182724.7 KB
wallets

Get Withdrawal Fee Estimate

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

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

Request body

businessIdstring uuid required

Unique Id of the business who is sending this transactions

sourceAccountIdstring required

The Id of the account to debit

whitelistedAddressIdstring uuid 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.

Example request

{
  "sourceAccountId": "feae37acae20d713e2ed1f8b708ef4dd",
  "whitelistedAddressId": "118a9e6b-6e75-4d15-a20a-e7e666a72e62",
  "amount": "5000"
}

Response

success

totalFeestring required
ourFeestring required
theirFeestring required
networkFeestring required
feePerBytestring
gasLimitstring
gasPricestring
feeCurrencystring

Example response

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