# How to get the transaction recipt?

* **getTransactionReceipt**

This function is used to retrieve the transaction receipt for a given transaction hash.

{% code overflow="wrap" lineNumbers="true" fullWidth="false" %}

```typescript
import { L1XProvider, GetTransactionReceiptArg } from "@l1x/l1x-wallet-sdk";

let l1xProvider = new L1XProvider({
  clusterType: "mainnet",
  endpoint: "https://v2-mainnet-rpc.l1x.foundation",
});

let params: GetTransactionReceiptArg = {
  hash: "fe014c6a9ebc6d14c823fd12ddaa83f0bf6c747d228ccbcea24a1cd120f5dd85",
};

l1xProvider.core
  .getTransactionReceipt(params)
  .then((response) => console.log(response)) // log response
  .catch((err) => console.error(err)); // log error

```

{% endcode %}

**Parameters**:

The transaction hash of the transaction for which the transaction receipt needs to be retrieved

```json
{
    "hash": "fe014c6a9ebc6d14c823fd12ddaa83f0bf6c747d228ccbcea24a1cd120f5dd85"
}
```

**Returns:**

A promise that resolves with the transaction receipt.

```json
{
    transaction: { 
        tx_type: Number,
        nonce: String,
        fee_limit: String,
        signature: [Array],
        verifying_key: [Array],
        transaction: { NativeTokenTransfer: [Object] }
    },
    block_hash: 'd122e87c7939a93c3743dd7433d92515c65f13a9bddd350c866b7ce129bed0d4',
    block_number: 5178109,
    fee_used: '1',
    timestamp: 1706513499429,
    from: '51ab9c4805ff60048e05b7535be0081b271068fd',
    transaction_hash: 'fe014c6a9ebc6d14c823fd12ddaa83f0bf6c747d228ccbcea24a1cd120f5dd85'
}
```


---

# 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://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/core-methods/how-to-get-the-transaction-recipt.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.
