GETGet block transactions

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getBlockTransactions
CU40

Returns a summary of transactions in a specific block. Each item contains the account address and transaction ID, but not full transaction details. Use count to limit results and after_lt/after_hash for pagination. Call getTransactions with each transaction ID to get full details.

Query Parameters
workchaininteger (int32)required

The workchain to query. Use -1 for masterchain (validators, system contracts, config) or 0 for basechain (regular accounts and contracts). Most user transactions happen on workchain 0.

shardstringrequired

The shard identifier. Masterchain always uses -9223372036854775808. For basechain, shards split and merge dynamically. Use the shards endpoint to discover current shard configuration.

seqnointeger (int32)required

Block sequence number within the specified workchain and shard.

root_hashstring

The block's root hash. Together with file_hash, uniquely identifies a block.

file_hashstring

The block's file hash. Together with root_hash, uniquely identifies a block.

after_ltstring

Pagination cursor. Pass the lt value from the last item in the previous response to get the next page. Transactions and messages are ordered by logical time.

after_hashstring

Account ID in hex or base64 for block transaction pagination. Use together with after_lt from the last transaction in the previous page.

countinteger (int64)

Maximum number of items to return. The default is 40. Use smaller values for faster responses or larger values to reduce the number of API calls.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

@typestring (enum)required

TonLib type identifier for block transaction listings. Refer to the TonLib type reference for a full list.

idobjectrequired

Full block identifier for the queried block.

@typestring (enum)required

TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.

workchainintegerrequired

Workchain ID: -1 for masterchain, 0 for basechain.

shardstringrequired

Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.

seqnointegerrequired

Block sequence number within its workchain and shard. For the masterchain (workchain -1), this equals the global block height. For basechain shards (workchain 0), this is the sequence number local to that specific shard, not a global height.

root_hashstringrequired

The block's root hash. Together with file_hash, uniquely identifies a block.

file_hashstringrequired

Hash of the serialized block file. Together with root_hash, uniquely identifies a block.

req_countintegerrequired

The maximum number of transactions requested, as specified by the count request parameter. If incomplete is true, more transactions exist beyond this limit.

incompletebooleanrequired

Returns true if there are more transactions in this block; otherwise false. Use the last transaction as cursor for pagination.

transactionsobject[]required

Array of compact transaction references. Each entry contains the account address (string), logical time (string), and transaction hash (base64 or hex).

@typestring (enum)required

TonLib type identifier for compact transaction references. Refer to the TonLib type reference for a full list.

modeintegerrequired

Bitmask indicating which optional fields are present.

accountstringrequired

Account address that executed this transaction.

ltstringrequired

Logical time of the transaction. Use together with its hash for pagination and lookups.

hashstringrequired

SHA-256 hash of this transaction, encoded in base64.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v2/getBlockTransactions?workchain=-1&shard=-9223372036854775808&seqno=107892772&count=2" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "blocks.transactions",
    "id": {
      "@type": "ton.blockIdExt",
      "workchain": -1,
      "shard": "-9223372036854775808",
      "seqno": 107892772,
      "root_hash": "CZ71j2Ea/GLWj3Nc4qYFjHwU5WKnoR6a8OucP1StF/s=",
      "file_hash": "EgSbEso6FAMwFTf3B3yI1KeEu6cu2JNiwr/yWJWlKgc="
    },
    "req_count": 2,
    "incomplete": true,
    "transactions": [
      {
        "@type": "blocks.shortTxId",
        "mode": 135,
        "account": "-1:3333333333333333333333333333333333333333333333333333333333333333",
        "lt": "119175322000001",
        "hash": "4VCI6LPViDdacDfgJ0UXS+5RktVTdxQZ1za7ceh4wcI="
      },
      {
        "@type": "blocks.shortTxId",
        "mode": 135,
        "account": "-1:3333333333333333333333333333333333333333333333333333333333333333",
        "lt": "119175322000002",
        "hash": "k0vubB8Y6hMQTRy+BGrbt0xTe8szOfydO4mdU95nyIk="
      }
    ]
  },
  "@extra": "1795684390:6:12.62"
}