get https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getBlockTransactions
The getBlockTransactions
method retrieves transactions from a specific block in the TON blockchain. This method allows you to fetch transaction details for a given block, specified by its workchain, shard, and sequence number.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
workchain
(integer, required) β The ID of the workchain. Example:-1
for the masterchain.shard
(string, required) β The ID of the shard. Example:"-9223372036854775808"
for the masterchain.seqno
(integer, required) β The sequence number of the block. Example:39064874
.count
(integer, optional) β The maximum number of transactions to return. Default:40
.
JSON-RPC
curl -X POST \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTransactions",
"params": {
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 39064874,
"count": 40
}
}'
Response
id
(object) β The identifier of the block, containing:workchain
(integer) β The workchain ID of the block.shard
(string) β The shard ID of the block.seqno
(integer) β The sequence number of the block.root_hash
(string) β The root hash of the block.file_hash
(string) β The file hash of the block.
transactions
(array of objects) β An array of transaction objects, each containing:account
(string) β The account address involved in the transaction.hash
(string) β The transaction hash.lt
(string) β The logical time of the transaction.
incomplete
(boolean) β Indicates if the returned list of transactions is incomplete.
Use case
A possible use case for the getBlockTransactions
method in TON is for blockchain explorers, analytical tools, or any application that needs to examine transactions within specific blocks. This method can be used to:
- Display transaction details for a given block in a block explorer.
- Analyze transaction patterns or volumes within specific blocks or shards.
- Monitor specific accounts by tracking their transactions across blocks.
- Implement custom indexing or caching mechanisms for transaction data.
Try the getBlockTransactions
RPC method yourself
getBlockTransactions
RPC method yourself