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://bsc-api.bwarelabs.com/<your-endpoint-id>
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x14c0bf"
}

Last updated