Skip to main content

Subgraph Network

Embeded Subgraph

This crawler is designed to capture blockchain events emitted by Smart Contracts on Layer 1 (L1) and embed them directly into the server. By providing a real-time blockchain data feed, this component enables developers to seamlessly access and utilize on-chain data for building their applications.

Subgraph Network

With the subgraph embedded directly into the server, developers have the option to join the Subgraph Network, allowing them to establish redundancy for their own subgraph data. Additionally, this data is published, enabling other crawler nodes to validate it, thereby enhancing data transparency and integrity within their respective communities.

Subgraph Network Concept

  • Subgraph config: Include the subgraph configs:

    • subgraph.yaml: Define the subgraph data sources
    • schema.graphql: Define the subgraph schema
    • abis: Define the contract ABIs

    These subgraph configs are packed and mark with a version before being upload to importFriends

  • Local database: The server local database

  • Proof of Indexer: Act as the DA Layer for the subgraph network, used for storing proof of data to ensure data integrity, detect discrepancies rapidly, and mitigate potential conflicts within the network

  • Query Service: The query service holds the information whether the subgraph data is valid, and it holds knows which node to query for the data given the subgraph config.