> 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/chat/calculateconversationhash.md).

# calculateConversationHash

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

Generates a unique conversation hash for a pair of account addresses, ensuring a consistent hash regardless of the order of the accounts provided.

### Usage

```ts
const address1 = '0xAddress1...';
const address2 = '0xAddress2...';
const conversationHash = chat.calculateConversationHash(address1, address2);
```

### Returns

`ConversationHash`

The uniquely generated conversation hash for the pair of provided account addresses.

### Parameters

#### account1

* **Type** `Address`

The first Ethereum account address used in generating the conversation hash.

#### account2

* **Type** `Address`

The second Ethereum account address used in generating the conversation hash.
