adjacentTransactions - Ton
adjacentTransactions. Retrieves transactions that are adjacent to a specified transaction
adjacentTransactions - ton [Value: 100CU]
Retrieves transactions that are adjacent to a specified transaction
Use cases
- Get adjacent transactions for a specific transaction
- Trace transaction sequence
- Audit transaction flow in context
Constraints
- Requires valid transaction ID
- Supports Transactions V3 only
- Depends on sync
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request GET \
--url ' https://ton.drpc.org/rest/api/v3//adjacentTransactions?hash=a9d39a7f1e5f849835496b052885ed2ac07d54d5e0e11f2b17c3b00e3295a2b0&direction=both&limit=128&offset=0&sort=desc' \
--header 'accept: application/json'
Response
200
{
"ok": true,
"result": [
{
"transaction_id": "0:a9d39a7f1e5f849835496b052885ed2ac07d54d5e0e11f2b17c3b00e3295a2b0",
"from": "EQD1Lp1KcmGHFpE8eIvL1mnHT83b4HdB8HJxuSfq6Rq4zGyN",
"to": "EQDzSp9Qc6KcJXGJc7NkSVxj2pzLsmM4NdFpc8i2dZqjU9i9",
"amount": "2500000000",
"lt": 47597573000002,
"fee": "100000",
"timestamp": 1693527600,
"status": "completed",
"block_id": "0:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"message": "Payment for services"
},
{
"transaction_id": "0:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"from": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",
"to": "EQC7VpEHw2DA9hxkdx_WXv9NSkb_v_KVQMY2Le4a4Fk9DUqQ",
"amount": "1000000000",
"lt": 47597573000001,
"fee": "75000",
"timestamp": 1693527500,
"status": "completed",
"block_id": "0:abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
"message": "Monthly subscription payment"
}
]
}
Request params
object
hashstring
The hash of the reference transaction.
directionstring
The direction of adjacent transactions to retrieve. Possible values: 'before', 'after', or 'both'. Default is 'both'.
limitinteger
The maximum number of transactions to return. Default is 128.
offsetinteger
The number of transactions to skip before starting to return results. Default is 0.
sortstring
The sorting order of the transactions. Possible values are 'asc' for ascending or 'desc' for descending. Default is 'desc'.
Response
200
Response params
object
okboolean
Indicates if the request was successful.
resultarray
List of transaction details.
object
transaction_idstring
Unique identifier of the transaction.
fromstring
Address of the sender.
tostring
Address of the recipient.
amountstring
Amount transferred in the transaction, in the smallest units.
ltinteger
Logical time associated with the transaction.
feestring
Fee paid for the transaction.
timestampinteger
Unix timestamp when the transaction occurred.
statusstring
Current status of the transaction (e.g., completed).
block_idstring
Identifier of the block containing the transaction.
messagestring
Additional message associated with the transaction.