|
| 1 | +--- |
| 2 | +title: The Graph Explorer |
| 3 | +description: |
| 4 | + Explore and query blockchain data using The Graph's decentralized indexing |
| 5 | + protocol. Access iExec subgraphs on Arbitrum and Bellecour networks. |
| 6 | +--- |
| 7 | + |
| 8 | +# 🔍 The Graph Explorer |
| 9 | + |
| 10 | +The **iExec protocol** uses **The Graph** as a decentralized protocol for |
| 11 | +indexing and querying blockchain data across multiple networks. This powerful |
| 12 | +tool allows developers and users to efficiently retrieve and analyze on-chain |
| 13 | +data through GraphQL queries. |
| 14 | + |
| 15 | +<ImageViewer |
| 16 | + image-url-dark="/assets/tooling-&-explorers/the-graph/image-logo.jpg" |
| 17 | + image-alt="The Graph Protocol" |
| 18 | + link-url="https://thegraph.com/docs/en/subgraphs/quick-start/" |
| 19 | + caption="🔗 Learn more about The Graph Protocol" |
| 20 | +/> |
| 21 | + |
| 22 | +## 🎯 What is The Graph? |
| 23 | + |
| 24 | +The Graph is a decentralized protocol for indexing and querying blockchain data. |
| 25 | +It enables developers to build and publish open APIs called **subgraphs** that |
| 26 | +applications can query using GraphQL. This makes it easy to access blockchain |
| 27 | +data without having to run your own indexing infrastructure. |
| 28 | + |
| 29 | +### Key Benefits for iExec |
| 30 | + |
| 31 | +- **Decentralized Indexing**: Data is indexed by a network of decentralized |
| 32 | + indexers |
| 33 | +- **Real-time Queries**: Get up-to-date information about deals, tasks, apps, |
| 34 | + and protected data |
| 35 | +- **GraphQL Interface**: Powerful query language for flexible data retrieval |
| 36 | +- **Multi-network Support**: Access data across different blockchain networks |
| 37 | +- **Cost-effective**: No need to run your own indexing infrastructure |
| 38 | + |
| 39 | +## 🗂️ Available Subgraphs |
| 40 | + |
| 41 | +iExec has deployed several subgraphs across different networks to provide |
| 42 | +comprehensive data access. Each subgraph indexes specific aspects of the iExec |
| 43 | +protocol. |
| 44 | + |
| 45 | +<CardGrid> |
| 46 | + <ProjectCard |
| 47 | + title="iExec PoCo - Arbitrum Mainnet" |
| 48 | + description="Indexes Proof of Contribution (PoCo) data on Arbitrum mainnet, including apps, deals, tasks, and workerpools" |
| 49 | + icon="mdi:database-network" |
| 50 | + status="available" |
| 51 | + status-label="Live" |
| 52 | + button-label="Explore Subgraph" |
| 53 | + button-icon="mdi:open-in-new" |
| 54 | + button-href="https://thegraph.com/explorer/subgraphs/B1comLe9SANBLrjdnoNTJSubbeC7cY7EoNu6zD82HeKy?view=Query&chain=arbitrum-one" |
| 55 | + button-target="_blank" |
| 56 | + button-rel="noreferrer" |
| 57 | + /> |
| 58 | + |
| 59 | + <ProjectCard |
| 60 | + title="iExec DataProtector - Arbitrum Mainnet" |
| 61 | + description="Indexes DataProtector protocol data on Arbitrum mainnet, including protected data, access grants, and sharing mechanisms" |
| 62 | + icon="mdi:shield-lock" |
| 63 | + status="available" |
| 64 | + status-label="Live" |
| 65 | + button-label="Explore Subgraph" |
| 66 | + button-icon="mdi:open-in-new" |
| 67 | + button-href="https://thegraph.com/explorer/subgraphs/Ep5zs5zVr4tDiVuQJepUu51e5eWYJpka624X4DMBxe3u?view=Query&chain=arbitrum-one" |
| 68 | + button-target="_blank" |
| 69 | + button-rel="noreferrer" |
| 70 | + /> |
| 71 | + |
| 72 | +<ProjectCard |
| 73 | + title="iExec PoCo - Bellecour Mainnet" |
| 74 | + description="Indexes Proof of Contribution (PoCo) data on Bellecour mainnet, including apps, deals, tasks, and workerpools" |
| 75 | + icon="mdi:database-network" |
| 76 | + status="available" |
| 77 | + status-label="Live" |
| 78 | + button-label="Explore Subgraph" |
| 79 | + button-icon="mdi:open-in-new" |
| 80 | + button-href="https://thegraph.bellecour.iex.ec/subgraphs/name/bellecour/poco-v5/graphql?query=query+MyQuery+%7B%0A++apps+%7B%0A++++name%0A++++id%0A++++owner+%7B%0A++++++id%0A++++%7D%0A++%7D%0A%7D" |
| 81 | + button-target="_blank" |
| 82 | + button-rel="noreferrer" |
| 83 | + /> |
| 84 | + |
| 85 | +<ProjectCard |
| 86 | + title="iExec DataProtector - Bellecour Mainnet" |
| 87 | + description="Indexes DataProtector protocol data on Bellecour mainnet, including protected data, access grants, and sharing mechanisms" |
| 88 | + icon="mdi:shield-lock" |
| 89 | + status="available" |
| 90 | + status-label="Live" |
| 91 | + button-label="Explore Subgraph" |
| 92 | + button-icon="mdi:open-in-new" |
| 93 | + button-href="https://thegraph.iex.ec/subgraphs/name/bellecour/dataProtector-v2/graphql?query=query+MyQuery+%7B%0A++protectedDatas+%7B%0A++++id%0A++++name%0A++++owner+%7B%0A++++++id%0A++++%7D%0A++%7D%0A%7D" |
| 94 | + button-target="_blank" |
| 95 | + button-rel="noreferrer" |
| 96 | + /> </CardGrid> |
| 97 | + |
| 98 | +## 🔍 GraphQL Explorer Interface |
| 99 | + |
| 100 | +The Graph provides an interactive GraphQL explorer that allows you to build and |
| 101 | +test queries directly in your browser. This powerful interface makes it easy to |
| 102 | +explore the available data and construct complex queries. |
| 103 | + |
| 104 | +<ImageViewer |
| 105 | + image-url-dark="/assets/tooling-&-explorers/the-graph/graphql-explorer.png" |
| 106 | + image-alt="GraphQL Explorer Interface" |
| 107 | + link-url="https://thegraph.com/explorer/subgraphs/B1comLe9SANBLrjdnoNTJSubbeC7cY7EoNu6zD82HeKy?view=Query&chain=arbitrum-one" |
| 108 | + caption="🔗 Try the GraphQL Explorer" |
| 109 | +/> |
| 110 | + |
| 111 | +### How to Use the GraphQL Explorer |
| 112 | + |
| 113 | +1. **Navigate to a Subgraph**: Click on any of the subgraph links above to |
| 114 | + access the GraphQL explorer |
| 115 | +2. **Explore the Schema**: Use the "Schema" tab to browse available entities and |
| 116 | + their fields |
| 117 | +3. **Build Queries**: Use the "Query" tab to construct and test GraphQL queries |
| 118 | +4. **View Results**: Execute queries to see real-time data from the blockchain |
| 119 | +5. **Copy Queries**: Use the generated queries in your applications |
| 120 | + |
| 121 | +### Example Queries |
| 122 | + |
| 123 | +Here are some example queries you can try in the GraphQL explorer: |
| 124 | + |
| 125 | +#### Query Apps on Arbitrum |
| 126 | + |
| 127 | +```graphql |
| 128 | +query { |
| 129 | + apps { |
| 130 | + id |
| 131 | + name |
| 132 | + owner { |
| 133 | + id |
| 134 | + } |
| 135 | + appType |
| 136 | + appUri |
| 137 | + } |
| 138 | +} |
| 139 | +``` |
| 140 | + |
| 141 | +#### Query Protected Data on Bellecour |
| 142 | + |
| 143 | +```graphql |
| 144 | +query { |
| 145 | + protectedDatas { |
| 146 | + id |
| 147 | + name |
| 148 | + owner { |
| 149 | + id |
| 150 | + } |
| 151 | + dataType |
| 152 | + dataUri |
| 153 | + } |
| 154 | +} |
| 155 | +``` |
| 156 | + |
| 157 | +#### Query Deals and Tasks |
| 158 | + |
| 159 | +```graphql |
| 160 | +query { |
| 161 | + deals { |
| 162 | + id |
| 163 | + requester { |
| 164 | + id |
| 165 | + } |
| 166 | + app { |
| 167 | + name |
| 168 | + } |
| 169 | + dataset { |
| 170 | + name |
| 171 | + } |
| 172 | + workerpool { |
| 173 | + id |
| 174 | + } |
| 175 | + tasks { |
| 176 | + id |
| 177 | + status |
| 178 | + } |
| 179 | + } |
| 180 | +} |
| 181 | +``` |
| 182 | + |
| 183 | +<div class="bg-gradient-to-r from-blue-400/10 to-purple-400/5 rounded-[6px] p-6 border-l-4 border-blue-700 mb-6"> |
| 184 | + <h4 class="!mt-0 !mb-2">💡 Pro Tip</h4> |
| 185 | + <p class="!mb-0">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.</p> |
| 186 | +</div> |
| 187 | + |
| 188 | +<script setup> |
| 189 | +import ImageViewer from '../../components/ImageViewer.vue'; |
| 190 | +import CardGrid from '../../components/CardGrid.vue'; |
| 191 | +import ProjectCard from '../../components/ProjectCard.vue'; |
| 192 | +</script> |
0 commit comments