GETGet block transactions (extended)

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getBlockTransactionsExt
CU60

Returns full transaction objects for transactions in a specific block. Each transaction includes complete data: inbound and outbound messages, fees, and BoC-encoded raw data. Use count to limit results and after_lt/after_hash for pagination when incomplete is true.

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 extended 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 full transaction objects. Each entry contains the account address, timestamps, inbound/outbound messages, fees (in nanograms), and the raw transaction BoC (base64).

@typestring (enum)required

Object type identifier.

addressobjectrequired

Account address object for this transaction.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

utimeintegerrequired

Unix timestamp when this transaction was executed.

datastringrequired

Full transaction data serialized as BoC, base64 encoded.

transaction_idobjectrequired

The transaction identifier, represented by logical time and transaction hash.

@typestring (enum)required

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

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.

feestringrequired

Total fees paid for this transaction, in nanograms.

storage_feestringrequired

Storage fees in nanograms deducted from the account balance during the storage phase of this transaction. Covers the cost of storing the contract state on-chain since the last transaction.

other_feestringrequired

Fees in nanograms deducted from the account balance during the computation and action phases of this transaction. Covers the cost of TVM execution and processing outgoing messages.

in_msgobject

The inbound message that triggered this transaction.

@typestring (enum)required

TonLib type identifier for raw message objects. Refer to the TonLib type reference for a full list.

hashstringrequired

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

sourceobjectrequired

Sender account address. Empty for external inbound messages.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

destinationobjectrequired

Recipient account address.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

valuestringrequired

GRAM amount transferred with this message, in nanograms.

extra_currenciesobject[]required

Array of extra currencies (native blockchain-level tokens, distinct from Jettons) transferred in this message. Each entry contains a currency ID (integer) and amount (decimal string). Empty array if no extra currencies were transferred.

@typestring (enum)required

TonLib type identifier for extra currency balance entries. Refer to the TonLib type reference for a full list.

idinteger (int32)required

A 32-bit integer identifying the extra currency. Currency IDs are defined at the blockchain configuration level and stored in ConfigParam 7 of the masterchain. The extra-currency minting documentation describes the process.

amountstringrequired

Currency balance amount as a decimal string.

fwd_feestringrequired

Forwarding fee deducted from the message value, in nanograms.

ihr_feestringrequired

Instant Hypercube Routing (IHR) fee in nanograms.

created_ltstringrequired

Logical time when this message was created.

body_hashstringrequired

Hash of the message body.

msg_dataoneOfrequired

Message body payload (raw, text comment, or encrypted).

object 1object
@typestring (enum)

TonLib type identifier for raw (binary) message bodies. Refer to the TonLib type reference for a full list.

bodystring

Raw message body in BoC format, base64 encoded.

init_statestring

Contract init state (code + data) attached to this message, base64 encoded. Present only for deploy messages.

object 2object
@typestring (enum)

TonLib type identifier for plain text comment message bodies. Refer to the TonLib type reference for a full list.

textstring

UTF-8 text comment, base64 encoded.

object 3object
@typestring (enum)

TonLib type identifier for decrypted text message bodies. Refer to the TonLib type reference for a full list.

textstring

Decrypted UTF-8 text content, base64 encoded.

object 4object
@typestring (enum)

TonLib type identifier for encrypted text message bodies. Refer to the TonLib type reference for a full list.

textstring

Encrypted message payload, base64 encoded.

out_msgsobject[]required

Array of outbound messages produced by this transaction. Each message contains sender and recipient address objects, GRAM amount (nanograms as string), forwarding fee, and raw message body.

@typestring (enum)required

TonLib type identifier for raw message objects. Refer to the TonLib type reference for a full list.

hashstringrequired

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

sourceobjectrequired

Sender account address. Empty for external inbound messages.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

destinationobjectrequired

Recipient account address.

@typestring (enum)required

TonLib type identifier for account address objects. Refer to the TonLib type reference for a full list.

account_addressstringrequired

The account address in raw format (workchain:hex), e.g. 0:abc123.... Use the pack address endpoint to convert to user-friendly base64 format.

valuestringrequired

GRAM amount transferred with this message, in nanograms.

extra_currenciesobject[]required

Array of extra currencies (native blockchain-level tokens, distinct from Jettons) transferred in this message. Each entry contains a currency ID (integer) and amount (decimal string). Empty array if no extra currencies were transferred.

@typestring (enum)required

TonLib type identifier for extra currency balance entries. Refer to the TonLib type reference for a full list.

idinteger (int32)required

A 32-bit integer identifying the extra currency. Currency IDs are defined at the blockchain configuration level and stored in ConfigParam 7 of the masterchain. The extra-currency minting documentation describes the process.

amountstringrequired

Currency balance amount as a decimal string.

fwd_feestringrequired

Forwarding fee deducted from the message value, in nanograms.

ihr_feestringrequired

Instant Hypercube Routing (IHR) fee in nanograms.

created_ltstringrequired

Logical time when this message was created.

body_hashstringrequired

Hash of the message body.

msg_dataoneOfrequired

Message body payload (raw, text comment, or encrypted).

object 1object
@typestring (enum)

TonLib type identifier for raw (binary) message bodies. Refer to the TonLib type reference for a full list.

bodystring

Raw message body in BoC format, base64 encoded.

init_statestring

Contract init state (code + data) attached to this message, base64 encoded. Present only for deploy messages.

object 2object
@typestring (enum)

TonLib type identifier for plain text comment message bodies. Refer to the TonLib type reference for a full list.

textstring

UTF-8 text comment, base64 encoded.

object 3object
@typestring (enum)

TonLib type identifier for decrypted text message bodies. Refer to the TonLib type reference for a full list.

textstring

Decrypted UTF-8 text content, base64 encoded.

object 4object
@typestring (enum)

TonLib type identifier for encrypted text message bodies. Refer to the TonLib type reference for a full list.

textstring

Encrypted message payload, base64 encoded.

accountstring

The account address that this transaction belongs to.

@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/getBlockTransactionsExt?workchain=-1&shard=-9223372036854775808&seqno=107892772&count=2" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "blocks.transactionsExt",
    "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": "raw.transactionExt",
        "address": {
          "@type": "accountAddress",
          "account_address": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"
        },
        "utime": 1795684335,
        "data": "te6cckECBgEAASwAA69zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzAABsY6q72oEP1kf3E8AANEGIIhH2YunOESwNefQj4Wa5/k9xiRz1IgAAbGOqrJhCawf37wABQIAQIDAAEgAIJyt8yXrok5lGxtOZNpZ3psVGeBLbtEkpRGqWYTXfekLHWCPhYcJDFe...",
        "transaction_id": {
          "@type": "internal.transactionId",
          "lt": "119175322000001",
          "hash": "4VCI6LPViDdacDfgJ0UXS+5RktVTdxQZ1za7ceh4wcI="
        },
        "fee": "0",
        "storage_fee": "0",
        "other_fee": "0",
        "out_msgs": [],
        "account": "-1:3333333333333333333333333333333333333333333333333333333333333333"
      },
      {
        "@type": "raw.transactionExt",
        "address": {
          "@type": "accountAddress",
          "account_address": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"
        },
        "utime": 1795684335,
        "data": "te6cckECBwEAAYoAA69zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzAABsY6q72oLhUIjos9WIN1pwN+AnRRdL7lGS1VN3FBnXNrtx6HjBwgAAbGOqu9qBawf37wABQIAQIDAQGgBACCcoI+FhwkMV4QVlVWBKrMIMMKWIEWIXyBgtC7X0b5gVDBSthuHs8y...",
        "transaction_id": {
          "@type": "internal.transactionId",
          "lt": "119175322000002",
          "hash": "k0vubB8Y6hMQTRy+BGrbt0xTe8szOfydO4mdU95nyIk="
        },
        "fee": "0",
        "storage_fee": "0",
        "other_fee": "0",
        "in_msg": {
          "@type": "raw.message",
          "hash": "tiqeNd6l442tU8S4mNzjGJOAiXXHODl1hhQOwqUCw80=",
          "source": {
            "@type": "accountAddress",
            "account_address": "Ef8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAU"
          },
          "destination": {
            "@type": "accountAddress",
            "account_address": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"
          },
          "value": "2706138628",
          "extra_currencies": [],
          "fwd_fee": "0",
          "ihr_fee": "0",
          "created_lt": "119175322000000",
          "body_hash": "lqKW0iTyhcZ77pPDD4owkVfw2qNdxbh+QQt4YwoJz8c=",
          "msg_data": {
            "@type": "msg.dataRaw",
            "body": "te6cckEBAQEAAgAAAEysuc0=",
            "init_state": ""
          }
        },
        "out_msgs": [],
        "account": "-1:3333333333333333333333333333333333333333333333333333333333333333"
      }
    ]
  },
  "@extra": "1795684392:5:12.501"
}