Transfer

Get fee estimate

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.

The fee estimate provided by BitGo is higher than the usual network fee. This additional fee is not charged by BitGo but is used to ensure that the transactions are processed faster and do not fail on the blockchain network.

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

Request

  • Base URL
    https://developers.bitgo.com
  • URL
    https://developers.bitgo.com/api/v2/{coin}/tx/fee
  • Auth
    none declared

Path parameters

coinstring required

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)

Response

OK

OR
OR
OR
OR

Example response

{
  "feePerKb": 15902,
  "numBlocks": 2,
  "confidence": 80,
  "feeByBlockTarget": {
    "1": 50536,
    "2": 15902,
    "3": 1579
  }
}

Changes

No operation changes recorded.