eth_blockNumber

Returns the number of most recent block.

GET https://api.securerpc.com/v1/ethereum/:network/eth_blockNumber

HEADERS

Content-Type: application/json

EXAMPLE

// HTTP GET
curl https://api.securerpc.com/v1/ethereum/mainnet/eth_blockNumber
// HTTP POST
curl https://mainnet.backbonecabal.xyz/ \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}'
// WEBSOCKETS
>wscat -c wss://mainnet.backbonecabal.xyz/ws
>{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":73}

RESULT FIELDS

  • BLOCK NUMBER - a hex code of an integer representing the current block number the client is on.

BODY

{
jsonrpc: "2.0",
id: 1,
result: "0x5c174e"
}