🌐Using the Subgraph
Last updated
Last updated
All the on-chain data is indexed via a subgraph, deployed for all networks and hosted via The Graph.
For example, the Linea mainnet subgraph can be found there:
If you want to access the public subgraph on the Linea Sepolia, you can access it here:
You can also get access to all the subgraphs URLs from the project's Readme file:
You can use this default web interface to write queries in GraphQL to search through the attestation registry. Alternatively, you can use a tool such as Postman, or use the subgraph's API to query the registry directly from your own dApp.
Examples of queries that you can make using the subgraph:
Get all attestations, along with the respective schema string, and the decoded attestation data:
Give me all attestations related issued to a specific address:
Give me all attestations issued to a specific address, related to a specific schema ID, that have not been revoked.
As well as querying the attestation registry, you can query the schema registry, module registry, and portal registry. For example, if you want to browse the library of existing schemas:
To get more information on using the subgraph, please refer to The Graph's documentation.
The source code for our subgraph is available in our monorepo, where you find info on deploying your own subgraph if you want to.