Links

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": "0x7fa10" // 522,768
}
mainnet
testnet
curl https://mainnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
curl https://testnet.hedera.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'