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
// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_blockNumber","params": []}' https://eth-api.bwarelabs.com/<your-endpoint-id>
// Response
{
"jsonrpc":"2.0",
"id":83,
"jsonrpc": "2.0",
"result": "0x4b7" // 1207
}
Last updated
Was this helpful?