Subgraph
The Graph is a protocol for indexing networks like Ethereum and IPFS.
Site owners publish subgraphs that expose site data for anyone to query.
Semaphore's subgraph allows you to retrieve data from the Semaphore.sol
smart contract.
tip
The Graph protocol uses the GraphQL query language. For examples, see the GraphQL API documentation. Visit the subgraph repository to see the list of Semaphore subgraphs.
Schema​
MerkleTree​
id
: unique identifier among all MerkleTree entities,depth
: Merkle tree depth,root
: Merkle tree root,zeroValue
: Merkle tree zero value,numberOfLeaves
: total number of tree leaves,group
: link to the Group entity.