JSON-RPCMethods

eth_blockNumber: parameters, returns and CU

Return the number of the latest block known to the node.

Summary

Return the number of the latest block known to the node.

Compute units (CU) and pricing

CU per call

1 CU

Price per 1M calls (USD)

$0.10

Parameters

This method takes no parameters.

Returns

  • Type: QUANTITY
  • Description: Latest block number as a 0x-prefixed hexadecimal quantity.

Notes

The result reflects the node's current head and moves as new blocks arrive; it does not imply that the block is final.

Request example

export BLOCKVECTRA_API_KEY=rgw_your_api_key

curl -X POST "https://api.blockvectra.com/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H "x-api-key: $BLOCKVECTRA_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_blockNumber",
    "params": [],
    "id": 1
  }'

Supported chains

Available on all 29 supported chains.

Last updated: