---
title: "Estimate ledger to blockchain transaction fee"
method: POST
path: "/v3/offchain/blockchain/estimate"
tags: ["Blockchain fees"]
---

# Estimate ledger to blockchain transaction fee

`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`

<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>

## Request body

- OffchainEstimateFee
  - `senderAccountId` string, required: Sender account ID
  - `address` string, 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.
  - `amount` string, required: Amount to be withdrawn to blockchain.
  - `multipleAmounts` string[]: 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.
  - `attr` string: Used to parametrize withdrawal as a change address for left coins from transaction. XPub or attr must be used.
  - `xpub` string: Extended public key (xpub) of the wallet associated with the accounts.

## Response `200`

OK

- FeeBtcBased
  - `fast` string, required: Transaction fee in BTC|LTC to be paid, if transaction should be included in next 1-2 blocks.
  - `medium` string, required: Transaction fee in BTC|LTC to be paid, if transaction should be included in next 5-6 blocks.
  - `slow` string, required: Transaction fee in BTC|LTC to be paid, if transaction should be included in next 7+ blocks.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `403`: Forbidden. The request is authenticated, but it is not possible to perform the operation due to logical error or invalid permissions.
- `500`: Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.dev/tatum/apis/virtual-accounts.md) - [All operations](https://skmtc.dev/tatum/apis/virtual-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/tatum/apis/virtual-accounts/revisions/ba220553084b?raw)
