---
title: "Estimate gas price"
method: GET
path: "/estimate_gas_price"
tags: ["Transactions"]
---

# Estimate gas price

`GET /estimate_gas_price`

## Request

- Base URL: `aptos-mainnet.nodereal.io/v1/{api_key}/v1` (relative, and the document’s source URL is not known)
- URL: `aptos-mainnet.nodereal.io/v1/{api_key}/v1/estimate_gas_price`
- Auth: none declared

Currently, the gas estimation is handled by taking the median of the last 100,000 transactions
If a user wants to prioritize their transaction and is willing to pay, they can pay more
than the gas price.  If they're willing to wait longer, they can pay less.  Note that the
gas price moves with the fee market, and should only increase when demand outweighs supply.

If there have been no transactions in the last 100,000 transactions, the price will be 1.

## Response `200`

- GasEstimation: Struct holding the outputs of the estimate gas API
  - `gas_estimate` integer, required: The current estimate for the gas unit price

## Other responses

- `400`
- `403`
- `500`
- `503`

---

[API](https://skmtc.dev/nodereal/apis/aptos-node-api.md) - [All operations](https://skmtc.dev/nodereal/apis/aptos-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/aptos-node-api/revisions/46b3dead5102?raw)
