eth_gasPrice - Ethereum
eth_gasPrice on Ethereum: returns the node's estimate of a gas price for a legacy transaction. Parameters, response and request example for the RPC Fast endpoint.
Returns the node's estimate of a gas price for a legacy transaction.
Parameters
None.
Returns
Gas price in wei, as hex.
Example
Request
curl https://eth-mainnet.rpcfast.com/?api_key=<API_KEY> \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3fcc574"
}See Compute Units for the price of this method on Ethereum.
Last updated