Verax Attestation Registry
  • 👋Introduction
  • ⚒️Getting Started
  • Core Concepts
    • High-Level Overview
    • Attestations
    • Schemas
    • Linked Data
    • Modules
    • Portals
    • Ecosystem
  • Developer Guides
    • ♒For Attestation Issuers
      • Create and register a Schema
      • Create a Module
      • Register a Module
      • Create a Portal
      • Register a Portal
      • Create an Attestation
      • Encoding Attestation Data
      • Revoke an Attestation
      • Replace an Attestation
      • Link Attestations
      • Bulk Create Attestations
      • EAS compatibility
    • 🧑‍🏫Tutorials
      • From a Schema to an Attestation
      • Using Ceramic to store the Attestation Payload
    • 🚀Examples
    • 🌐Using the Subgraph
    • 🛠️Using the SDK
  • Discover
    • 📚Modules Standard Library
      • ECDSAModule
      • ERC1271Module
      • FeeModule
      • IndexerModule
      • IssuersModule
      • SchemaModule
      • SenderModule
    • 🤝Integrations
  • Get Involved
    • Get in Touch
    • Contribute
    • Governance
      • Governance Charter
      • Governance Parameters
      • Overview of Governance
      • Proposal Templates
Powered by GitBook
On this page
  1. Developer Guides

Using the Subgraph

PreviousExamplesNextUsing the SDK

Last updated 8 months ago

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:

  1. Get all attestations, along with the respective schema string, and the decoded attestation data:

    query MyQuery {
      attestations {
        attestationData
        decodedData
        schemaString
      }
    }
  2. Give me all attestations related issued to a specific address:

    query MyQuery {
      attestations(where: {subject: "0xd14BF29e486DFC3836757b9B8CCFc95a5160A56D"}) {
        attestationData
        decodedData
        schemaString
      }
    }
  3. Give me all attestations issued to a specific address, related to a specific schema ID, that have not been revoked.

    query MyQuery {
      attestations(
        where: {
          subject: "0xd14BF29e486DFC3836757b9B8CCFc95a5160A56D",
          schemaId: "0x7b2d17830782df831c39edcbd728a47f0a470d57fdf452b5f4226f467f48295e",
          revoked: false
        }
      ) {
        attestationData
        decodedData
        schemaString
      }
    }

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:

query SchemaQuery {
  schemas {
    name
    description
    id
    context
  }
}

The source code for our subgraph is available in our monorepo, where you find info on deploying your own subgraph if you want to.

To get more information on using the subgraph, please refer to .

🌐
The Graph's documentation
The GraphiQL
Public subgraph on LInea mainnet
The GraphiQL
Public subgraph on Linea Sepolia
GitHub - Consensys/linea-attestation-registry: Verax is a shared registry for storing attestations of public interest on EVM chains, designed to enhance data discoverability and consumption for dApps across the network.GitHub
https://github.com/Consensys/linea-attestation-registry/tree/dev/subgraph
Logo
Logo
Logo