Skip to main content

EstimateGasPriceAndUsage gRPC Method

Estimates both the gas price based on transaction priority and the gas usage for a specific transaction on the Celestia blockchain. This method simulates the transaction to determine the exact gas consumption.

Updated on
Jul 07, 2026

Parameters

tx_priority
string
REQUIRED

The priority level for the gas price estimation

TX_PRIORITY_UNSPECIFIED
integer

Default priority, equivalent to MEDIUM priority (value: 0)

TX_PRIORITY_LOW
integer

Low priority - gas price at the end of the lowest 10% of gas prices from last 5 blocks (value: 1)

TX_PRIORITY_MEDIUM
integer

Medium priority - mean of all gas prices from last 5 blocks (value: 2)

TX_PRIORITY_HIGH
integer

High priority - gas price at the start of the top 10% of gas prices from last 5 blocks (value: 3)

tx_bytes
string
REQUIRED

The encoded transaction bytes to estimate gas usage for

Returns

estimated_gas_price
integer

The estimated gas price in utia (micro TIA) based on the requested priority level

estimated_gas_used
integer

The estimated amount of gas that will be consumed by the transaction

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free