get

/v4/analytics/transactions/{chainId}

Get states by transaction hashes (V2)

Retrieves position states associated with the given transaction hashes from the V2 position_states table. Returns enriched state data including protocol, action, and token metadata derived from state descriptions.

Path parameters

chainIdnumber | string
required

Query parameters

txHashesstring
required
positionKeyFilterstring
timestampsstring

Responses

200
Response for status 200
Schema
object
dataobject[]
required
stateTypeenumpositionglobal
blockNumbernumber
blockTimestampnumber
chainIdnumber
storingIdstring
positionKeystring
positionGranularityKeystring
ownerstring
protocolstring
actionstring
identifierstring
stateany
txHashesstring[]
totalCountnumber
required
Total number of states found
Example
{
  "data": [
    {
      "stateType": "position",
      "blockNumber": 0,
      "blockTimestamp": 0,
      "chainId": 0,
      "storingId": "string",
      "positionKey": "string",
      "positionGranularityKey": "string",
      "owner": "string",
      "protocol": "string",
      "action": "string",
      "identifier": "string",
      "state": null,
      "txHashes": [
        "string"
      ]
    }
  ],
  "totalCount": 0
}
get
https://analytics.merkl.xyz/v4/analytics/transactions/{chainId}
Merkl Analytics API
curl -X GET "https://analytics.merkl.xyz/v4/analytics/transactions/{chainId}"
Fill the required path parameter chainId to send.