eth_blockNumber

Returns the number of most recent block.

Reference: Here

Parameters:

None

Returned Value:

INTEGER - Value of the current block number the client is on

{
  "id":83,
  "jsonrpc": "2.0",
  "result": "0x4b7" // 1207
}
curl https://mainnet.polygon.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'

Last updated