Finds the transaction that received a specific message. Given message parameters, returns the transaction on the destination account that processed the incoming message. Use this to trace message delivery across accounts.
curl --request POST \
--url https://toncenter.com/api/v2/tryLocateResultTx \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source": "<string>",
"destination": "<string>",
"created_lt": "<string>"
}
'{
"ok": true,
"result": {
"@type": "ext.transaction",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"account": "<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": "ext.message",
"hash": "<string>",
"source": "<string>",
"destination": "<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>"
},
"message": "<string>",
"message_decode_error": "<string>"
}
],
"in_msg": {
"@type": "ext.message",
"hash": "<string>",
"source": "<string>",
"destination": "<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>"
},
"message": "<string>",
"message_decode_error": "<string>"
}
},
"@extra": "<string>"
}OK
Response containing the result transaction.
Indicates if the request succeeded. If false, check the error field for details.
The response data. Only present when ok is true.
Show child attributes
Object type identifier.
ext.transaction The account address that this transaction belongs to.
Unix timestamp (seconds since 1970-01-01). When this event occurred in real-world time.
Raw transaction or contract data in BOC (Bag of Cells) format, base64 encoded.
Reference to this transaction. Use lt and hash to fetch full details.
Show child attributes
Object type identifier.
internal.transactionId Logical time of this event. A globally unique counter that orders all blockchain events. Higher values are more recent.
Unique identifier hash for this object.
Total fees paid for this transaction in nanotons.
Fees paid for storing the contract state on-chain, in nanotons. Charged based on contract size and time.
Computation and action fees in nanotons. Covers gas for executing contract code.
Messages sent by this transaction. A transaction can send multiple messages to different destinations.
Show child attributes
Object type identifier.
ext.message Unique identifier hash for this object.
Sender address. Empty string for external messages (sent from outside the blockchain).
Recipient address.
Amount of TON transferred in this message, in nanotons (1 TON = 10^9 nanotons).
Non-TON currencies transferred. TON supports multiple native currencies.
Show child attributes
Object type identifier.
extraCurrency Request ID. Pass any string and it will be echoed in the response.
Balance amount as string.
Fee for forwarding this message to its destination, in nanotons.
Instant Hypercube Routing fee in nanotons. Usually 0 as IHR is rarely used.
Logical time when this message was created. Use with source and destination to uniquely identify a message.
Hash of the message body. Use this to verify message content without the full body.
The message body containing instructions for the destination contract.
Human-readable comment if the message body is a simple text comment.
Error text if the message body couldn't be decoded as a comment.
The incoming message that triggered this transaction. External messages come from outside the blockchain.
Show child attributes
Object type identifier.
ext.message Unique identifier hash for this object.
Sender address. Empty string for external messages (sent from outside the blockchain).
Recipient address.
Amount of TON transferred in this message, in nanotons (1 TON = 10^9 nanotons).
Non-TON currencies transferred. TON supports multiple native currencies.
Show child attributes
Object type identifier.
extraCurrency Request ID. Pass any string and it will be echoed in the response.
Balance amount as string.
Fee for forwarding this message to its destination, in nanotons.
Instant Hypercube Routing fee in nanotons. Usually 0 as IHR is rarely used.
Logical time when this message was created. Use with source and destination to uniquely identify a message.
Hash of the message body. Use this to verify message content without the full body.
The message body containing instructions for the destination contract.
Human-readable comment if the message body is a simple text comment.
Error text if the message body couldn't be decoded as a comment.
Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.
Was this page helpful?
curl --request POST \
--url https://toncenter.com/api/v2/tryLocateResultTx \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source": "<string>",
"destination": "<string>",
"created_lt": "<string>"
}
'{
"ok": true,
"result": {
"@type": "ext.transaction",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"account": "<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": "ext.message",
"hash": "<string>",
"source": "<string>",
"destination": "<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>"
},
"message": "<string>",
"message_decode_error": "<string>"
}
],
"in_msg": {
"@type": "ext.message",
"hash": "<string>",
"source": "<string>",
"destination": "<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>"
},
"message": "<string>",
"message_decode_error": "<string>"
}
},
"@extra": "<string>"
}