Skip to main content
GET
/
api
/
v2
/
tryLocateSourceTx
Try locate source transaction
curl --request GET \
  --url https://toncenter.com/api/v2/tryLocateSourceTx \
  --header 'X-API-Key: <api-key>'
{
  "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>"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

source
string
required

The sender's address for the message you're looking for. A TON account address. Accepts raw format (workchain:hex like 0:abc...), base64 bounceable (EQ...), base64 non-bounceable (UQ...), or base64url. All formats are automatically detected.

destination
string
required

The recipient's address for the message you're looking for. A TON account address. Accepts raw format (workchain:hex like 0:abc...), base64 bounceable (EQ...), base64 non-bounceable (UQ...), or base64url. All formats are automatically detected.

created_lt
string
required

The logical time when the message was created. You can find this in the created_lt field of message objects.

Response

OK

Response containing the source transaction.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.