Get groups

Query toolkit to fetch group metadata and its snapshots

Query a group

You can query a group by its id or its name. The name argument is not case sensitive, you can see all the groups created on the Sismo Factory.

query getGroupFromId {
  group (id: "0x682544d549b8a461d7fe3e589846bb7b") {
    id
    name
    description
    specs
    generationFrequency
    latestSnapshot {
      id
      dataUrl
      size
      valueDistribution {
        value
        numberOfAccounts
      }
      timestamp
    }
    snapshots {
      id
      size
      timestamp
      valueDistribution {
        numberOfAccounts
        value
      }
    }
  }
}

Query all groups

You can query all the groups created on Sismo with their latest snapshot (the last data for this group) with this simple query.

query getAllGroups {
  groups {
    id
    generationFrequency
    description
    name
    specs
    latestSnapshot {
      dataUrl
      timestamp
      id
      size
      valueDistribution {
        numberOfAccounts
        value
      }
    }
  }
}

Last updated