← Robinhood Chain overview

Robinhood Chain · eth

eth_blockNumber

Returns the number of most recent block.

cURL

Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_blockNumber",
  "params": []
}

Result

Block number

Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2377"
}
Schema
{
  "type": "string",
  "title": "hex encoded unsigned integer",
  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}

Test fixture

Fixture: simple-test

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_blockNumber"
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x36"
}