Eth_blockNumber

Ethereum method - eth_blockNumber

post

Returns the number of the latest block on the chain in hexadecimal format.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

The JSON-RPC protocol version

Example: 2.0
methodstringRequired

Name of the method being called

Example: eth_blockNumber
paramsarrayRequired

This method does not take parameters; always send an empty array.

idintegerRequired

A unique ID for the request

Example: 1
Responses
chevron-right
200

The latest block number

application/json
jsonrpcstringOptional

JSON-RPC version used in the response

Example: 2.0
idintegerOptional

ID that matches the original request

Example: 1
resultstringOptional

The block number of the latest block, represented as a hexadecimal string. Example: "0x10d4f" equals 68943 in decimal.

Example: 0x10d4f
post
/
200

The latest block number

Last updated