eth_blockNumber method
Returns the number of the most recent block

Parameters

none

Returns

QUANTITY - integer of the current block number the client is on.

Example

1
// Request
2
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_blockNumber","params": []}' https://fantom-mainnet-api.bwarelabs.com/<your-endpoint-id>
3
4
// Response
5
6
{
7
"jsonrpc":"2.0",
8
"id":83,
9
"jsonrpc": "2.0",
10
"result": "0x4b7" // 1207
11
}
Copied!
Last modified 2mo ago
Copy link