# GET /v4/analytics/transactions/by-user/{userAddress}/{chainId}

_Merkl Analytics API_

> Get tx hashes by user, grouped by indexing ID

Returns all transaction hashes recorded for a given user address, grouped by indexing ID (opportunity). Supports optional chain filtering via the chainId path parameter. Results are cursor-paginated: pass `first` to set page size and `after` (from `pageInfo.endCursor`) to fetch the next page. Cursor encodes `(block_number, position_id)` — ordering is block_number DESC.

### Path parameters

- `userAddress` (string) _(required)_
- `chainId` (string | number) _(required)_

### Query parameters

- `first` (string | number)
- `after` (string)

## Responses

- **200** Response for status 200

## Example request

```bash
curl -X GET "https://analytics.merkl.xyz/v4/analytics/transactions/by-user/{userAddress}/{chainId}" \
  -H "x-api-key: YOUR_API_KEY"
```