# Indexing Transaction

Users can trigger the indexing of transactions on the Magna platform by providing either the transaction ID or transaction hash.

This functionality ensures that transaction details are accurately recorded and indexed on the Magna platform and accessible within the platform for further analysis or processing.

Example request:

```sh
curl -X POST <https://app.magna.so/api/external/v1/transactions/indexing> \\
-H 'Content-Type: application/json' \\
-H 'x-magna-api-token: magna_project_api_token' \\
-d '{
"transactionId": "your_transaction_id",
"transactionHash": "your_transaction_hash"
}'
```

* `magna_project_api_token` (required) - replace with your actual Magna API token
* `your_transaction_id` (required) - with your transaction id
* `your_transaction_hash` (required) - with processed transaction hash

Response example:

```json
{
  "isProcessed": true
}
```


---

# 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.magna.so/magna-api-documentation/transactions/indexing-transaction.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.
