transactionsByMessage - Ton

transactionsByMessage. Fetches transactions associated with a specific message.

transactionsByMessage - ton [Value: 100CU]
Fetches transactions associated with a specific message.
Use cases

Use cases

  • Find transactions by message ID
  • Trace message-related transactions
  • Audit message-based transaction flow
Constraints

Constraints

  • Needs valid message ID
  • Supports Transactions V3 only
Get started
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//transactionsByMessage?direction=out&msg_hash=po4%2FF9OgHrJGTUCtobScZrW%2FgOwVPj7s3f40HV32EII%3D&limit=128&offset=0' \
     --header 'accept: application/json'
Copy
Response
200
{
    "ok": true,
    "result": [
        {
            "transaction_id": "0:abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
            "from": "EQD1Lp1KcmGHFpE8eIvL1mnHT83b4HdB8HJxuSfq6Rq4zGyN",
            "to": "EQDzSp9Qc6KcJXGJc7NkSVxj2pzLsmM4NdFpc8i2dZqjU9i9",
            "amount": "2500000000",
            "lt": 47597573000002,
            "fee": "100000",
            "timestamp": 1693527600,
            "status": "completed",
            "message_hash": "po4/F9OgHrJGTUCtobScZrW/gOwVPj7s3f40HV32EII=",
            "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",
            "message_hash": "po4/F9OgHrJGTUCtobScZrW/gOwVPj7s3f40HV32EII=",
            "message": "Monthly subscription payment"
        }
    ]
}
Copy

Request params

Parametersobject
object
directionstring
Required. The direction of the message. Possible values are 'in' or 'out'. Default is 'out'.
msg_hashstring
Required. The hash of the message.
limitinteger
Optional. The maximum number of transactions to return. Default is 128.
offsetinteger
Optional. The number of transactions to skip before starting to return results. Default is 0.

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.