> For the complete documentation index, see [llms.txt](https://docs.opium.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opium.network/for-developers/opium-api/opium-protocol-on-the-graph.md).

# Subgraph V1

GraphQL subgraph with realtime data for [**Opium Protocol**](https://opium.network/) **V1** to make systems that use the protocol more robust and reliable. Also, it helps developers to easily understand Opium Protocol and integrate it into their projects.

The Graph team pinned this subgraph to the main page of the explorer.

Source code: <https://github.com/OpiumProtocol/opium-contracts/tree/master/thegraph>

| Network                    | URL                                                                                |
| -------------------------- | ---------------------------------------------------------------------------------- |
| Ethereum Mainnet           | <https://thegraph.com/explorer/subgraph/opiumprotocol/opium-network>               |
| Ethereum (Rinkeby Testnet) | <https://thegraph.com/hosted-service/subgraph/opiumprotocol/opium-network-rinkeby> |
