curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
eth_gasPrice
retrieves the current gas price, which is crucial for executing transactions on the Base network. The gas price is determined by the demand for transaction processing and the supply of miners willing to process transactions.
none
— This method does not require any parameters.result
— the current gas price, encoded as a hexadecimal string. This value fluctuates based on network activity and miner demand.eth_gasPrice
method is essential for:
The current gas price
The response is of type object
.
Was this page helpful?