Total positions entity: How many positions & What are they?
totalPositions can be used to fetch the position identifiers available from a blueprint for a particular user address. These position identifiers are then needed in all of the other queries. Currently this is the only entity that doesn't require a position identifier. It also has the standard indexingStatus object to show if the data is fully synched or more processing is required.
For the latest entity information and schema please see the embedded tabs on the GraphQL endpoint: https://beta.archiveprotocol.com/graphql
Sample Request
query {
totalPositions(
userIdentifier: "0x2f3890Fa27ec94EdAFb682D127C6d1CAA08EcbAe"
blueprintId: "uniswap_v3_arbitrum"
) {
requestId
count
activePositions
positions
indexingStatus {
headBlock
headTimestamp
lastSyncedBlock
lastSyncedTimestamp
}
}
}
Sample Response
{
"data": {
"totalPositions": {
"requestId": "413dd366-187b-59fa-98c5-3aade4f22aae",
"count": 1,
"activePositions": [
"181090"
],
"positions": [
"181090"
],
"indexingStatus": {
"headBlock": 242017544,
"headTimestamp": 1723447127,
"lastSyncedBlock": 242017544,
"lastSyncedTimestamp": 1723447127
}
}
}
}
Once you have the positions, you can now query for the specific positions for a user