# Get  ASC-20 Records By TxId

## Get ASC-20 records by transaction id.

<mark style="color:green;">`POST`</mark> `https://open-api.avascriptions.com/v1/asc20/records-by-trxid`

#### Query Parameters

| Name                                   | Type   | Description    |
| -------------------------------------- | ------ | -------------- |
| txid<mark style="color:red;">\*</mark> | string | Transaction id |

{% tabs %}
{% tab title="200: OK Successful operation" %}

```json
{
    "status": 200,
    "data": [
        {
            "id": 1131,
            "tick": "avav",
            "operation": "transfer",
            "from": "0xaaaaa6972e56c3c12345caaaaaabaaaaa9999999",
            "to": "0xbaaaa6972e56c3c12345caaaaaabaaaaa9999910",
            "amount": "69696969",
            "valid": 1,
            "block": "28752030",
            "hash": "0xe73bd4c4ccc8bd86cbe361ff05815d077a97d7f7bcfd4f46bd46ccc20d225811",
            "timestamp": 1703218684
        }
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid API Key" %}

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Please make sure that records's valid is 1, if it is -1 it means that the operation is not successful, it may be that the balance is not enough or other parameters are wrong.

Because some operation events (e.g., transfers) are emited by contracts, there may be multiple ASC20 records within the same transaction.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avascriptions.com/developer-service/asc-20/get-asc-20-records-by-txid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
