Get transactions in specified block with extended information
curl --request GET \
--url https://toncenter.com/api/v2/getBlockTransactionsExt{
"ok": true,
"result": {
"@type": "blocks.transactionsExt",
"id": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
},
"req_count": 123,
"incomplete": true,
"transactions": [
{
"@type": "raw.transactionExt",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"utime": 123,
"data": "<string>",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
},
"fee": "<string>",
"storage_fee": "<string>",
"other_fee": "<string>",
"out_msgs": [
{
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
],
"in_msg": {
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
},
"account": "<string>"
}
]
}
}import asyncio
from toncenter.rest import ToncenterRestClient
from toncenter.types import Network
WORKCHAIN = -1
SHARD = "-9223372036854775808"
SEQNO = 57981181
async def main() -> None:
async with ToncenterRestClient(network=Network.MAINNET) as client:
result = await client.v2.transactions.get_block_transactions_ext(
WORKCHAIN,
SHARD,
SEQNO,
)
print(result.model_dump_json(indent=4))
if __name__ == "__main__":
asyncio.run(main())
Workchain ID
Shard ID
Seqno of a block
Root hash of a block
File hash of a block
Logical time of transaction to read after
Hash of account in this block in hex or base64 representation, which indicates transaction to read after
Maximum number of items in response
curl --request GET \
--url https://toncenter.com/api/v2/getBlockTransactionsExt{
"ok": true,
"result": {
"@type": "blocks.transactionsExt",
"id": {
"@type": "ton.blockIdExt",
"workchain": 123,
"shard": "<string>",
"seqno": 123,
"root_hash": "<string>",
"file_hash": "<string>"
},
"req_count": 123,
"incomplete": true,
"transactions": [
{
"@type": "raw.transactionExt",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"utime": 123,
"data": "<string>",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
},
"fee": "<string>",
"storage_fee": "<string>",
"other_fee": "<string>",
"out_msgs": [
{
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
],
"in_msg": {
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
},
"account": "<string>"
}
]
}
}