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
200

The latest block number

application/json
post
/
POST / HTTP/1.1
Host: core.nownodes.io
api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}
200

The latest block number

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