get

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

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

userAddressstring
required
chainIdnumber | string
required

Query parameters

firstnumber | stringdefault: 10000
afterstring

Responses

200
Response for status 200
Schema
object
dataobject
required
Tx hashes grouped by indexingId
paginationobject
required
totalTxHashesnumber
required
Total number of tx hashes
totalOpportunitiesnumber
required
Total number of distinct opportunities (indexingIds)
pageInfoobject
startCursorstring
required
endCursorstring
required
hasNextPageboolean
required
Example
{
  "data": {},
  "pagination": {
    "totalTxHashes": 0,
    "totalOpportunities": 0,
    "pageInfo": {
      "startCursor": "string",
      "endCursor": "string",
      "hasNextPage": false
    }
  }
}
get
https://analytics.merkl.xyz/v4/analytics/transactions/by-user/{userAddress}/{chainId}
Merkl Analytics API
curl -X GET "https://analytics.merkl.xyz/v4/analytics/transactions/by-user/{userAddress}/{chainId}"
Fill the required path parameters userAddress, chainId to send.