FiyatlandırmaGitHubKontrol paneli

TON

lookupBlock25 kredi

Finds a block of a shard by its seqno, by a logical time, or by a Unix time.

Ağ: ton

Parametreler

AdTürAçıklama
workchainnumberWorkchain id: -1 for the masterchain, 0 for the basechain.
shardnumberShard id (int64). Pass it as a string, as JSON numbers lose precision beyond 2^53: "-9223372036854775808" is the masterchain shard.
seqnonumberBlock seqno. One of seqno, lt and unixtime is needed. (isteğe bağlı)
ltnumberLogical time that falls in the block. (isteğe bağlı)
unixtimenumberUnix time (seconds) that falls in the block. (isteğe bağlı)

Dönüş değeri

Tür

Object

The block id: workchain, shard, seqno, root_hash, file_hash.

Kod örnekleri

curl https://holy-burned-sky-ton-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "lookupBlock",
  "params": {
    "workchain": -1,
    "shard": "-9223372036854775808",
    "seqno": 40000000
  }
}'