Get fee estimate

get/api/v2/{coin}/tx/fee

Returns the estimated fee for a transaction. UTXO coins will return a fee per kB, while Account-based coins will return a flat fee estimate

Path Parameters

  • coinstringRequired
    A cryptocurrency or token ticker symbol.
    Example: "btc"

Query Parameters

  • numBlocksinteger
    target number of blocks
  • recipientstring
    Recipient of the tx to estimate for (only for ETH)
  • datastring
    ETH data of the tx to estimate for (only for ETH)
  • amountstring
    Amount in base units being sent to estimate for (only for ETH)
  • hopboolean
    True if we are estimating for a hop tx, false or unspecified for a wallet tx (ETH, AVAXC and POLYGON)

200 Response

One of
feePerKb integer required
Fee per kilobyte for a transaction to be confirmed across two or more blocks. Defaults to 2 if "numBlocks" is not provided in the request query.
Example: 15902
cpfpFeePerKb integer
Child-Pays-For-Parent (CPFP) fee per kilobyte where the fee includes the fees for all unconfirmed transactions dependent on this transaction.
numBlocks integer required
The target block confirmation.
Example: 2
confidence integer
(BTC only) Confidence, as a percentage, in the accuracy of the fee estimate.
Minimum: >= 0
Maximum: <= 100
Example: 80
feeByBlockTarget object
(BTC only) Fee estimates are stored as a key-value pair where the key is the block target (between 1 and 1000) and the value is the corresponding fee estimate (in baseunits per kilobyte).
Example: {"1":50536,"2":15902,"3":1579}

400 Response

error string required
Human-readable error message
requestId string required
Client request id
context object
Properties that apply to a specific error name
name string required
Error code