Skip to main content

erigon_blockNumber RPC Method

Fetches the number of the latest block.

Updated on
Jun 4, 2024

erigon_blockNumber RPC Method

Parameters

This method does not accept any parameters

Returns

result
string
An integer value of the latest block number encoded as hexadecimal
Request
1
curl --location 'https://docs-demo.xdai.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "erigon_blockNumber",
5
"params": [],
6
"id": 1,
7
"jsonrpc": "2.0"
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free