> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/sdk-and-white-label/ethereum/mail/fetchbytransactionhash.md).

# fetchByTransactionHash

{% hint style="info" %}
Reference for SDK 0.5.x (maintenance mode). See [Status](/sdk-and-white-label/status.md).
{% endhint %}

Fetch a mail using its associated transaction hash.

### Usage

```ts
const txHash = '0x...';
const receivedEnvelope = await mail.fetchByTransactionHash(txHash);
```

### Returns

`Promise<ReceivedEnvelope>`

A promise that resolves to the received mail Envelope associated with the specified transaction hash.

### Parameters

#### transactionHash

* **Type** `TransactionHash`

The transaction hash used to filter the associated mail.
