Blockchain fees

Estimate ledger to blockchain transaction fee

<h4>2 credits per API call.</h4><br/> <p>Estimate current transaction fee for ledger to blockchain transaction.<br/> Supported blockchains: <ul> <li>Bitcoin</li> <li>Litecoin</li> <li>Dogecoin</li> </ul> </p>
post/v3/offchain/blockchain/estimate

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/offchain/blockchain/estimate
  • Auth
    API key in header x-api-key

Request body

senderAccountIdstring required

Sender account ID

addressstring required

Blockchain address to send assets to. For BTC, LTC, and DOGE, it is possible to enter list of multiple recipient blockchain addresses as a comma separated string.

amountstring required

Amount to be withdrawn to blockchain.

multipleAmountsstring[]

For BTC, LTC, and DOGE, it is possible to enter list of multiple recipient blockchain amounts. List of recipient addresses must be present in the address field and total sum of amounts must be equal to the amount field.

attrstring

Used to parametrize withdrawal as a change address for left coins from transaction. XPub or attr must be used.

xpubstring

Extended public key (xpub) of the wallet associated with the accounts.

Example request

{
  "senderAccountId": "5e68c66581f2ee32bc354087",
  "address": "mpTwPdF8up9kidgcAStriUPwRdnE9MRAg7",
  "amount": "0.001",
  "multipleAmounts": [
    "0.1"
  ],
  "xpub": "xpub6EsCk1uU6cJzqvP9CdsTiJwT2rF748YkPnhv5Qo8q44DG7nn2vbyt48YRsNSUYS44jFCW9gwvD9kLQu9AuqXpTpM1c5hgg9PsuBLdeNncid"
}

Response

OK

faststring required

Transaction fee in BTC|LTC to be paid, if transaction should be included in next 1-2 blocks.

mediumstring required

Transaction fee in BTC|LTC to be paid, if transaction should be included in next 5-6 blocks.

slowstring required

Transaction fee in BTC|LTC to be paid, if transaction should be included in next 7+ blocks.

Example response

{
  "fast": "0.006584",
  "medium": "0.004584",
  "slow": "0.002584"
}

Changes

No recorded changes to this operation across all 1 revision of this API.