ドキュメント
料金GitHubダッシュボード

TON

getBlockTransactions34クレジット

Returns the transactions of a block, as short ids (account, logical time, hash), page by page.

ネットワーク: ton

パラメータ

名前型説明
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.
root_hashstringBlock root hash (base64), to check the block against. (任意)
file_hashstringBlock file hash (base64), to check the block against. (任意)
after_ltnumberLogical time of the last transaction of the previous page, to continue after it. (任意)
after_hashstringHash (base64) of the last transaction of the previous page; goes with after_lt. (任意)
countnumberNumber of transactions to return. Default 40. (任意)

戻り値

型

Object

id (the block), req_count, incomplete (true when there are more) and transactions: a list of { account, lt, hash }.

コード例

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": "getBlockTransactions",
  "params": {
    "workchain": -1,
    "shard": "-9223372036854775808",
    "seqno": 40000000,
    "count": 40
  }
}'