---
title: "Estimate the fee for multiple Ethereum transactions"
method: POST
path: "/v3/ethereum/gas/batch"
tags: ["Fee Estimation API"]
---

# Estimate the fee for multiple Ethereum transactions

`POST /v3/ethereum/gas/batch`

**10 credits per API call + 10 credits per each gas estimation**

Get an estimated gas price and the number of gas units needed for multiple Ethereum transactions. The gas price is obtained from multiple sources and calculated based on the latest N blocks and the current mempool state.

The estimations are returned in the same order as the transactions were submitted in the request.

The `fast` gas price is used by default.

**NOTE:** The estimated gas price is returned in **wei**. However, when [making a transaction itself](https://apidoc.tatum.io/tag/Ethereum#operation/EthBlockchainTransfer) and providing the custom fee, you have to provide the gas price in **Gwei**. Make sure to convert the estimated gas price from wei to Gwei before submitting your transaction.

## Headers

- `x-testnet-type` 'ethereum-sepolia'

## Request body

- EthEstimateGasArray
  - `estimations` EthEstimateGas[], required
    - `from` string, required — Sender address.
    - `to` string, required — Blockchain address to send assets
    - `contractAddress` string — Contract address of ERC20 token, if transaction is ERC20 token
    - `amount` string, required — Amount to be sent in Ether or ERC20.
    - `data` string — Additional data that can be passed to a blockchain transaction as a data property; must be in the hexadecimal format

## Response `200`

OK

- EthGasEstimationBatch
  - `error` boolean, required — If all estimations succeeded.
  - `result` object[], required
    - `error` boolean, required — If estimation succeeded.
    - `contractAddress` string — Contract address of ERC20 token, if transaction is ERC20 token
    - `data` object
      - `gasLimit` string, required — Gas limit for transaction in gas price.
      - `gasPrice` string, required — Gas price in wei.
      - `estimations` object, required — Detailed estimations for safe (under 30 minutes), standard (under 5 minutes) and fast (under 2 minutes) transaction times.
        - `safe` string, required — Safe gas price in wei.
        - `standard` string, required — Standard gas price in wei.
        - `fast` string, required — Fast gas price in wei.
        - `baseFee` string, required — Base fee for EIP-1559 transactions in wei.
    - `msg` string — Error message. Present only if error - true.

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