eth_gasPrice - Ethereum
Shows how much each gas currently costs in wei
How to Use the eth_gasPrice Method
Parameters
No parameters
What you receive
QUANTITY - an actual gas price presented in wei as an integer.
Sample
Here is a typical appliance example.
Call
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":0}'
Outcome
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x12a05f200"
}
Last updated