> For the complete documentation index, see [llms.txt](https://teos-docs.coreledger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teos-docs.coreledger.net/guides/transactions/retrieve-a-transaction-by-id.md).

# Retrieve a transaction by Id

Retrieves a specific blockchain transaction using its unique identifier. A transaction represents an action that writes data to the blockchain, such as asset activation, controller updates, or ether transfers.

You can use OData Select query option to retrieve specific fields of the transaction.

📘 [Learn more ](/resources/using-the-teos-api/concepts/transaction.md)about transactions.

#### Request Endpoint:

```http
GET /odata/v1.0/Transactions({key})
```

#### Parameters

| **Parameter** | **Type**      | **Description**                                    | **Mandatory** |
| ------------- | ------------- | -------------------------------------------------- | ------------- |
| key           | string (UUID) | The unique identifier of the requested transaction | ✅             |

**Example:**

```json
B5BB3E99-A8F8-4896-8D41-07920DFCDAEC
```

#### Request Body

No request body required.

#### Response Body Example

**Media type:** `application/json`

```json
{
  "Id": "C0D34D73-6FD3-40F2-A7E1-08D9412448F7",
  "State": "3",
  "BlockchainTransactionId": "0x748ac47e7226cae0e4e13373375f33ab9e4d43ef29d85d233162a7e7e913703b",
  "Type": "ActivateAsset",
  "OnCreated": "2025-10-10T10:02:57.810Z",
  "OnUpdated": "2025-10-10T10:02:57.810Z",
  "OnSubmitted": "2025-10-10T10:02:57.810Z",
  "OnCommitted": "2025-10-10T10:02:57.810Z",
  "OnConfirmed": "2025-10-10T10:02:57.810Z",
  "OnRevokedByBlockchain": "2025-10-10T10:02:57.810Z",
  "OnRevokedByUser": "2025-10-10T10:02:57.810Z",
  "OnRevokedByTxServer": "2025-10-10T10:02:57.810Z",
  "SignedBy": "string",
  "CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "GasPrice": "string",
  "GasUsed": "string",
  "DataAsJson": "string",
  "SigningParametersAsJson": "string"
}
```

#### Response Body Parameters:

| **Parameter**           | **Type**      | **Description**                                                             |
| ----------------------- | ------------- | --------------------------------------------------------------------------- |
| Id                      | string (UUID) | Unique identifier of the transaction                                        |
| State                   | string        | Current transaction state (Received, Submitted, Committed, Confirmed, etc.) |
| BlockchainTransactionId | string        | Identifier of the transaction on the blockchain                             |
| Type                    | string        | Type of the transaction (see Transaction types in TEOS API)                 |
| OnCreated               | datetime      | Timestamp when the transaction was created                                  |
| OnUpdated               | datetime      | Timestamp when the transaction was last updated                             |
| OnSubmitted             | datetime      | Timestamp when the transaction was submitted for signing                    |
| OnCommitted             | datetime      | Timestamp when the transaction was successfully committed to the blockchain |
| OnConfirmed             | datetime      | Timestamp when the transaction was confirmed by the blockchain              |
| OnRevokedByBlockchain   | datetime      | Timestamp if transaction was revoked by blockchain                          |
| OnRevokedByUser         | datetime      | Timestamp if transaction was revoked by user                                |
| OnRevokedByTxServer     | datetime      | Timestamp if transaction was revoked by TxServer                            |
| SignedBy                | string        | Public address of the signer of the transaction                             |
| CreatedBy               | string        | Identifier of the user who created the transaction                          |
| GasPrice                | string        | Gas price used for the transaction                                          |
| GasUsed                 | string        | Gas used for the transaction                                                |
| DataAsJson              | string        | Transaction data serialized as JSON                                         |
| SigningParametersAsJson | string        | Parameters used for signing the transaction serialized as JSON              |

#### Responses

| **Code** | **Description**                                |
| -------- | ---------------------------------------------- |
| 200      | The transaction was successfully retrieved     |
| 401      | Unauthorized                                   |
| 404      | The transaction with specified Id is not found |

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://teos-docs.coreledger.net/guides/transactions/retrieve-a-transaction-by-id.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
