← Base overview
Base · eth
eth_blockNumber
Returns the number of most recent block.
Result
Block number
Schema
{
"type": "string",
"title": "hex encoded unsigned integer",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}Example request
Endpoint: https://your-base-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber",
"params": []
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2377"
}Test fixture
Fixture: simple-test
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber"
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x36"
}cURL
curl -X POST https://your-base-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'