get https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v3/adjacentTransactions
Retrieves a list of transactions adjacent to a specific transaction
The adjacentTransactions
endpoint retrieves a list of transactions adjacent to a specific transaction in the TON blockchain. This endpoint allows you to fetch transactions that occurred before or after a given transaction, providing context and enabling transaction flow analysis.
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
hash
(string, required) β The hash of the reference transaction. Example:a9d39a7f1e5f849835496b052885ed2ac07d54d5e0e11f2b17c3b00e3295a2b0
.direction
(string, required) β The direction of adjacent transactions to retrieve. Possible values:before
,after
, orboth
. Default:both
.limit
(integer, optional) β The maximum number of transactions to return. Default:128
.offset
(integer, optional) β The number of transactions to skip before starting to return results. Default:0
.sort
(string, optional) β The sorting order of the transactions. Possible values:asc
(ascending) ordesc
(descending). Default:desc
.
Response
transactions
(array) β An array of transaction objects, each containing:hash
(string) β The transaction hash.lt
(string) β The logical time of the transaction.account
(string) β The account address involved in the transaction.now
(integer) β The timestamp of the transaction.origStatus
(string) β The original status of the account.endStatus
(string) β The end status of the account.totalFees
(string) β The total fees for the transaction.
Use case
The adjacentTransactions
endpoint is useful for various applications that need to analyze transaction sequences or provide context around specific transactions:
- Block explorers can use this to show transactions that occurred before and after a specific transaction, helping users understand the transaction flow.
- Analytics tools can use this endpoint to track transaction chains and analyze patterns in transaction sequences.
- Wallet applications can provide users with a broader context of their transactions by showing adjacent transactions from the same account or related accounts.
- Debugging tools for smart contracts can use this to trace the execution flow of transactions and their effects on the blockchain state.
Try the adjacentTransactions
RPC method yourself
adjacentTransactions
RPC method yourself