eth_gasPrice- Ethereum
Retrieve the current gas price using eth_gasPrice. Provides the median gas price based on the last 100 blocks, optimizing transaction fees and user experience on the Ethereum network
Supported Networks
Parameters
Request Example
https://go.getblock.io/<ACCESS-TOKEN>/curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/'
--header 'Content-Type: application/json'
--data-raw {
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": "getblock.io"
}wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": "getblock.io"}Response Example
Response Description
Use Case
Code Example
Last updated
Was this helpful?