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

# calculateConversationHash

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.


---

# 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:

```
GET https://wiki.4thtech.io/sdk/ethereum/chat/calculateconversationhash.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.
