eth_blockNumber

BaseC1

Returns the latest block number the node has imported. Takes no parameters.

Endpoint
POST https://api.1st-node.com/v1/base/rpc

Returns

QUANTITY — the current block height, hex-encoded.

Request

curl https://api.1st-node.com/v1/base/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_blockNumber",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_blockNumber",
  "params": []
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x12d4e2a"
}
More blocks methods on Base

Base API

Частые вопросы

Is this the finalized head?

It's the latest imported block; use the "finalized" tag on block methods if you need finality.

Пополнили, получили ключ, запустили.

Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.

Получить API-ключ