v1

latestOpenAPI 3.1.02026-07-241653251.3 MB
Withdrawals

Get network fee estimate

Returns a withdrawal estimation for a given asset.

get/withdrawals/estimate_network_fee

Query parameters

underlying'AAVE.ETH' | 'ADA' | 'ALGO' | 'AVAX' | 'BAT.ETH' | 'BCH' | 'BTC' | 'BUSD.ETH' | 'COMP.ETH' | 'DAI.ETH' | 'DOGE' | 'DOT' | 'EGLD' | 'EOS' | 'ETC' | 'ETH' | 'ETH.ARBITRUM' | 'GRT.ETH' | 'GYEN.ETH' | 'HBAR' | 'LINK.ETH' | 'LTC' | 'LUNA' | 'MATIC.ETH' | 'MATIC.POLYGON' | 'MKR.ETH' | 'MOB' | 'SAND.ETH' | 'SOL' | 'UNI.ETH' | 'USDC.ETH' | 'USDC.ALGO' | 'USDC.POLYGON' | 'USDC.SOL' | 'USDC.HBAR' | 'USDC.XLM' | 'USDC.AVAX' | 'USDT.ETH' | 'UST' | 'WBTC.ETH' | 'XEM' | 'XLM' | 'XRP' | 'XTZ' | 'ZUSD.ETH' required

the underlying asset

Example:BTC

the underlying asset for the quote

quoted_currency'CAD' | 'EUR' | 'GBP' | 'JPY' | 'MXN' | 'USD' required

the quoted asset

Example:USD

the quoted asset for the quote

amountstring

the amount of the underlying currency

destination_addressstring required

The destination_address is the receiving address for the withdrawal request

contract_callboolean required

In a future release, this field will denote if the destination address is a smart contract address. False is the only acceptable value for now.

Headers

X-SCX-SIGNEDstring required

HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.

X-SCX-TIMESTAMPstring required
Example:1678901234

Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.

Response

Successfully retrieved network fee estimate. including gas price, network fees, and quoted amounts.

Example response

{
  "message": {
    "underlying": "BTC",
    "quoted_currency": "USD",
    "network_fee_asset": "BTC",
    "network_fee_quantity": "0.00012345",
    "total_notional": "2.867469544894346440"
  }
}