Skip to content

🔍 The Graph Explorer

The iExec protocol uses The Graph as a decentralized protocol for indexing and querying blockchain data across multiple networks. This powerful tool allows developers and users to efficiently retrieve and analyze on-chain data through GraphQL queries.

The Graph Protocol

🎯 What is the Graph?

The Graph is a decentralized protocol for indexing and querying blockchain data. It enables developers to build and publish open APIs called subgraphs that applications can query using GraphQL. This makes it easy to access blockchain data without having to run your own indexing infrastructure.

The Graph Protocol

Key Benefits for iExec

  • Decentralized Indexing: Data is indexed by a network of decentralized indexers
  • Real-time Queries: Get up-to-date information about deals, tasks, apps, and protected data
  • GraphQL Interface: Powerful query language for flexible data retrieval
  • Multi-network Support: Access data across different blockchain networks

🗂️ Available Subgraphs

iExec has deployed several subgraphs across different networks to provide comprehensive data access. Each subgraph indexes specific aspects of the iExec protocol.

iExec PoCo - Arbitrum

iExec PoCo - Arbitrum

Live

Indexes Proof of Contribution (PoCo) data on Arbitrum mainnet, including apps, deals, tasks, and workerpools

iExec DataProtector - Arbitrum

iExec DataProtector - Arbitrum

Live

Indexes DataProtector protocol data on Arbitrum mainnet, including protected data, access grants, and sharing mechanisms

iExec PoCo - Bellecour

iExec PoCo - Bellecour

Live

Indexes Proof of Contribution (PoCo) data on Bellecour mainnet, including apps, deals, tasks, and workerpools

iExec DataProtector - Bellecour

iExec DataProtector - Bellecour

Live

Indexes DataProtector protocol data on Bellecour mainnet, including protected data, access grants, and sharing mechanisms

🔍 GraphQL Explorer Interface

The Graph provides an interactive GraphQL explorer that allows you to build and test queries directly in your browser. This powerful interface makes it easy to explore the available data and construct complex queries.

GraphQL Explorer Interface

How to Use the GraphQL Explorer

  1. Navigate to a Subgraph: Click on any of the subgraph links above to access the GraphQL explorer
  2. Explore the Schema: Use the "Schema" tab to browse available entities and their fields
  3. Build Queries: Use the "Query" tab to construct and test GraphQL queries
  4. View Results: Execute queries to see real-time data from the blockchain
  5. Copy Queries: Use the generated queries in your applications

Example Queries

Here are some example queries you can try in the GraphQL explorer:

Query iApps

graphql
query {
  apps {
    id
    name
    owner {
      id
    }
    appType
    appUri
  }
}

Query Protected Data

graphql
query {
  protectedDatas {
    id
    name
    owner {
      id
    }
    dataType
    dataUri
  }
}

Query Deals and Tasks

graphql
query {
  deals {
    id
    requester {
      id
    }
    app {
      name
    }
    dataset {
      name
    }
    workerpool {
      id
    }
    tasks {
      id
      status
    }
  }
}

💡 Pro Tip

Use the GraphQL explorer's auto-completion feature to discover available fields and build complex queries. The schema documentation is always up-to-date with the latest protocol changes.