eth_gasPrice - Ethereum
Returns the current price per gas in wei.
If you are curious about the difference in gas price between this method and the eth gas station, check out this GitHub issue.

Parameters

none

Returns

QUANTITY - integer of the current gas price in wei.
Example
Request
Curl
Postman
1
curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":0}'
Copied!
1
URL: https://eth-mainnet.alchemyapi.io/v2/your-api-key
2
RequestType: POST
3
Body:
4
{
5
"jsonrpc":"2.0",
6
"method":"eth_gasPrice",
7
"params":[],
8
"id":0
9
}
Copied!
Result
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": "0x98bca5a00"
5
}
Copied!
Ethereum API
Alchemy Documentation
Copy link