← Zora overview
Zora · eth
eth_baseFee
Returns the base fee per gas of the next block in wei.
Result
Base fee
Schema
{
"type": "string",
"title": "Base fee",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}Example request
Endpoint: https://your-zora-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_baseFee",
"params": []
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b9aca00"
}Test fixture
Fixture: get-current-basefee
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_baseFee"
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x16dfe9b"
}cURL
curl -X POST https://your-zora-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_baseFee","params":[]}'