The Graph API
Azuro Protocol uses The Graph service to index and organize data from its smart contracts, making it efficient and intuitive to query blockchain data.
Overview
The Graph API is a critical component of the Azuro Protocol ecosystem, providing access to historical data, bet information, game details, and current odds. In V3, Azuro uses multiple subgraphs to organize different types of data:
- Client Subgraphs - For bet history and transaction-related data
- Data-Feed Subgraphs
deprecated- For current odds, game information, and condition states. Use the Backend API instead.
IMPORTANT: All feed data (games, conditions, outcomes with current odds) should now be fetched from the Backend API. The client API graph should only be used for bet history and other transaction-related data. Never query the API graph for feed data as it no longer contains this information.
Client Subgraphs
Client subgraphs contain bet history and transaction-related data. In V3, they include new V3_* entities that unify prematch and live bets.
Development Endpoints
- Polygon Amoy: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-polygon-amoy-dev-v3
- Gnosis Dev: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-gnosis-dev-v3
- Base Sepolia: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-base-sepolia-dev-v3
- Chiliz Spicy: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-chiliz-spicy-dev-v3
Production Endpoints
- Polygon: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-polygon-v3
- Gnosis: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-gnosis-v3
- Base: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-base-v3
- Chiliz: https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-chiliz-v3
Data-Feed Subgraphs deprecated
Data-feed subgraphs contain current odds, game information, and condition states. In V3, all feed data was moved to these subgraphs.
IMPORTANT: The data-feed subgraphs are deprecated and should no longer be used for querying feed data. Existing apps should migrate to the data-feed Backend API instead.
Development Endpoints
- Polygon Amoy: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-polygon-amoy-dev
- Gnosis Dev: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-gnosis-dev
- Base Sepolia: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-base-sepolia-dev
- Chiliz Spicy: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-chiliz-spicy-dev
Production Endpoints
- Polygon: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-polygon
- Gnosis: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-gnosis
- Base: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-base
- Chiliz: https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-chiliz