Introduction
Subgraphs provide an easy and intuitive way for Web3 developers to filter and query data from archive nodes. When you deploy a subgraph and set up the query criteria, successful hits are indexed and stored in a PostgreSQL database. A GraphQL endpoint is created, allowing you to access the most recent subgraph data, synchronized to the latest block.
Supported protocols
- Elastic: Ethereum Mainnet and Ethereum Sepolia Testnet, Polygon Mainnet, BNB Smart Chain Mainnet, Base Mainnet and Base Goerli Testnet, Arbitrum Mainnet, Optimism Testnet, Avalanche Mainnet, Fantom Mainnet, Gnosis Chain Mainnet.
- Dedicated: above-mentioned and any EVM-compatible chain, e.g. Gnosis Chain, Fantom, Boba Network, Moonbeam, Optimism, Moonriver, and more.
Add a subgraph
In the subgraphs section, you can view a list of all existing subgraphs and filter the view using the Protocol drop-down list. You can create a new subgraph by clicking the "Add Subgraph" button, and view the details of an existing subgraph by clicking on its name.
Subgraphs must be associated with a project. If you do not have a project to add the subgraph to, see "Create a Project".
- Click the "Add Subgraph" button. The "Add Subgraph" page is displayed.
- In the "Choose Network" section, choose the Blockchain protocol, Network (currently Mainnet is supported), and type.
- Click "Next". The "Create Subgraph" section is displayed.
- In the "Create Subgraph" section, enter a name for the subgraph, select the project you want to assign the subgraph to, and click "Add Subgraph".
- The details page of the new subgraph is displayed. It includes information such as the owner, creation date, region, and protocol. You can view metrics about the requests made in the subgraph, the subgraph query URLs, and the subgraph deployment command required to deploy the subgraph.
Conclusion
That's it! You have now added a subgraph and can move on to creating and configuring the subgraph to suit your needs, for more information visit our Subgraph Basic Workflow documentation page.
Feel free to contact Chainstack Support with any questions by emailing support@chainstack.com or submitting this form.
Comments
0 comments
Please sign in to leave a comment.