Skip to main content
POST
/
api
/
v2
/
tryLocateSourceTx
Try locate source transaction
curl --request POST \
  --url https://toncenter.com/api/v2/tryLocateSourceTx \
  --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>",
    "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>"
    },
    "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>"
      }
    ]
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
source
string
required

Sender address. Empty string for external messages (sent from outside the blockchain).

destination
string
required

Recipient address.

created_lt
required

Logical time when this message was created. Use with source and destination to uniquely identify a message.

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.