get
/v4/analytics/positions/at/{storingId}
Get closest position states at a timestampReturn the closest position state(s) to a Unix timestamp for a storingId.
order=DESC (default) returns the last state at or before the timestamp; order=ASC returns the first state at or after it.
Each entry mirrors the gRPC StateV2 shape, so the response carries the raw state blob unmodified.
Examples:
- Latest state ≤ T: GET /v4/analytics/positions/at/<storingId>?timestamp=1748635620
- First state ≥ T: GET /v4/analytics/positions/at/<storingId>?timestamp=1748635620&order=ASC
- One specific user: GET /v4/analytics/positions/at/<storingId>?timestamp=1748635620&positionKey=0xUser
Path parameters
storingIdstringrequired
Query parameters
timestampnumber | stringrequired
orderenumrequired
default: DESCASCDESCpositionKeystringpositionGranularityKeystringResponses
200Response for status 200
Schema
object
statesobject[]requiredClosest state(s) at or near the requested timestamp, one entry per position
blockNumbernumberblockTimestampnumberstoringIdstringpositionKeystringownerstringpositionGranularityKeystringstateobjecttxHashesstring[]Example
{
"states": [
{
"blockNumber": 0,
"blockTimestamp": 0,
"storingId": "string",
"positionKey": "string",
"owner": "string",
"positionGranularityKey": "string",
"state": {},
"txHashes": [
"string"
]
}
]
}get
https://analytics.merkl.xyz/v4/analytics/positions/at/{storingId}curl -X GET "https://analytics.merkl.xyz/v4/analytics/positions/at/{storingId}"Fill the required path parameter storingId to send.