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

# fetchConversationMessagesPaginated

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

Fetches the messages of a specific conversation in a paginated manner.

### Usage

```ts
const conversationHash = '0x...';
const pageNumber = 1n;
const pageSize = 10n;
const messages = await chat.fetchConversationMessagesPaginated(
  conversationHash,
  pageNumber,
  pageSize,
);
```

### Returns

`Promise<ReceivedMessage[]>`

A promise that resolves to an array of messages from the specified conversation, corresponding to the provided page number and size.

### Parameters

#### conversationHash

* **Type** `ConversationHash`

The hash of the target conversation from which messages are being fetched.

#### pageNumber

* **Type** `bigint`

The number of the page to be fetched.

#### pageSize

* **Type** `bigint`

The size of the page (i.e., the number of messages per page).
