eth_gasPrice
Returns the current price per gas in wei.
Ethereum specification · All supported methods
Parameters
No parameters. Send an empty params array.
Return value
A suggested gas price in wei, encoded as a hexadecimal quantity.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3e8"
}Direct behavior
This is a provider observation, not a read pinned to Direct’s reference block. Estimates can differ across providers. See consistency boundaries.