get
/v4/analytics/transactions/by-user/{userAddress}/{chainId}
Get tx hashes by user, grouped by indexing IDReturns 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
userAddressstringrequired
chainIdnumber | stringrequired
Query parameters
firstnumber | stringdefault: 10000afterstringResponses
200Response for status 200
Schema
object
dataobjectrequired
Tx hashes grouped by indexingIdpaginationobjectrequired
totalTxHashesnumberrequired
Total number of tx hashestotalOpportunitiesnumberrequired
Total number of distinct opportunities (indexingIds)pageInfoobject
startCursorstringrequired
endCursorstringrequired
hasNextPagebooleanrequired
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}curl -X GET "https://analytics.merkl.xyz/v4/analytics/transactions/by-user/{userAddress}/{chainId}"Fill the required path parameters userAddress, chainId to send.