---
title: "Estimate gas for a transfer"
method: POST
path: "/v4/blockchainOperations/gas"
tags: ["Fee Estimation API"]
---

# Estimate gas for a transfer

`POST /v4/blockchainOperations/gas`

**10 credits per API call**

Get an estimated gas price (wei) and the number of gas units needed for a transaction.

New endpoint which is unifying all supported chains for gas estimation into the one. List of supported chains is bellow.

*   BNB Smart Chain (BSC)
*   Celo (CELO)
*   Elrond (EGLD)
*   Ethereum (ETH)
*   Harmony (ONE)
*   Klaytn (KLAY)
*   KuCoin Community Chain (KCS)
*   Flare (FLR)
*   Cronos (CRO)
*   Avalanche (AVAX)
*   Base (BASE)
*   Polygon (POL\_ETH)
*   Optimism (OPTIMISM)
*   Fantom (FTM)
*   Sonic (S)

## Request body

- EstimateGas
  - `from` string, required — Blockchain address of the sender
  - `to` string, required — Blockchain address of the recipient
  - `amount` string, required — Amount to be sent
  - `data` string — Data to be sent
  - `contractAddress` string — Contract address of the token (only for ETH)
  - `chain` 'BSC' | 'CELO' | 'EGLD' | 'ETH' | 'ONE' | 'KLAY' | 'KCS' | 'FLR' | 'CRO' | 'AVAX' | 'BASE' | 'POL_ETH' | 'OPTIMISM' | 'FTM' | 'S', required — Blockchain to estimate gas for

## Response `200`

OK

- EstimateGasResult — Result of the gas estimation
  - `gasPrice` string — The estimated price for one gas unit (in wei)
  - `gasLimit` string — The number of the gas units needed to process the transaction at the estimated gas price

## 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 required perform 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.net/tatum/apis/blockchain-data.md) · [All operations](https://skmtc.net/tatum/apis/blockchain-data/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tatum/blockchain-data/versions/8622ee4b8fae/schema)
