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

gas_price RPC Method

Parameters

block_height
string
The height of the block
block_hash
string
The hash of the block
null
Using [null] will return the most recent block's gas price

Returns

gas_price
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