
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. States of a set holding decrypted confidential amounts (Zama ERC-7984 plaintext balances) are withheld.
Path parameters
chainIdnumber | stringrequired
Chain ID to query
Query parameters
txHashesstringrequired
Comma-separated transaction hashes (e.g., 0x123,0x456)
positionKeyFilterstringOptional substring filter for position key
timestampsstringComma-separated Unix timestamps (seconds) aligned with txHashes
Responses
200Response for status 200
Schema
object
dataobject[]required
stateTypeenumpositionglobalblockNumbernumberblockTimestampnumberchainIdnumberstoringIdstringpositionKeystringpositionGranularityKeystringownerstringprotocolstringactionstringidentifierstringstateanytxHashesstring[]totalCountnumberrequired
Total number of states foundExample
{
"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/?txHashes=curl -X GET "https://analytics.merkl.xyz/v4/analytics/transactions/1?txHashes=0x0000000000000000000000000000000000000000000000000000000000000000"