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
}
}
}
query getSnapshot {
groupSnapshot(
groupName: "proof-of-humanity",
) {
id
dataUrl
size
timestamp
valueDistribution {
numberOfAccounts
value
}
}
}