> ## Documentation Index
> Fetch the complete documentation index at: https://polymarket-data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Comments by User

> List comments authored by a wallet via gamma.comments.getCommentsByUserAddress.

`client.gamma.comments.getCommentsByUserAddress` collects comments authored by a specific wallet.

## Request

```ts theme={null}
const history = await client.gamma.comments.getCommentsByUserAddress(userAddress, params);
```

### Parameters

| Name          | Type               | Required | Notes                             |
| ------------- | ------------------ | -------- | --------------------------------- |
| `userAddress` | `string` (address) | ✅        | Author’s wallet or proxy address. |
| `limit`       | `number` (≥ 0)     |          | Page size.                        |
| `offset`      | `number` (≥ 0)     |          | Page offset.                      |
| `order`       | `string`           |          | Sorting expression.               |
| `ascending`   | `boolean`          |          | Sort direction.                   |

## Response

Array of `Comment` objects identical to [`List Comments`](/gamma/comments-list).

## Usage example

```ts theme={null}
const history = await client.gamma.comments.getCommentsByUserAddress(
  "0x0b5793a556ceb3a38dcaaa3b262e45decba480cc",
  { limit: 10 },
);

console.log(history.length);
```

## Failure modes

* `userAddress` must be a 0x-prefixed 40-hex string.
* Negative pagination values → validation error.
