Get group snapshots
Query toolkit to fetch group snapshots
Group snapshots store the data of a group at a specific timestamp. You can easily know the data of any group by knowing the groupId
or the groupName
and the associated timestamp
.
Get the latest snapshot
You can query the latest snapshot by specifying the groupId
or the groupName
.
query getSnapshot {
groupSnapshot(
groupId: "0x682544d549b8a461d7fe3e589846bb7b",
) {
id
dataUrl
size
timestamp
valueDistribution {
numberOfAccounts
value
}
}
}
Get a snapshot at a specific timestamp
query getSnapshotWithTimestamp {
groupSnapshot(
groupName: "proof-of-humanity",
timestamp: "1675692588"
) {
id
dataUrl
size
timestamp
valueDistribution {
numberOfAccounts
value
}
}
}
Last updated