Skip to main content

gas_price RPC Method

Returns the gas price for a specific block_height or block_hash.

Updated on
Oct 04, 2023

Parameters

block_height
string

The height of the block

block_hash
string

The hash of the block

null
null

Using [null] will return the most recent block's gas price

Returns

gas_price
string

Integer value of the gas price for the specified block

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