Find out how to deploy a subgraph on Scroll using The Graph for efficient blockchain data indexing and querying.
Deploying a subgraph on Scroll with Mobula’s infrastructure is a simple process. This guide will take you through the steps to get your subgraph running on the Scroll network.
Prepare Your Subgraph
Make sure your subgraph is configured for Scroll. Update your subgraph.yaml
file to point to Scroll-specific contracts and events. If you don’t have a subgraph, you can clone the Uniswap V2 (SushiSwap) subgraph template and customize it for Scroll:
Install Dependencies
Make sure you have The Graph CLI installed:
Build Your Subgraph
Compile your subgraph before deployment:
Create the Subgraph
Use the following command to deploy your subgraph:
Deploy to Mobula's Scroll Node
Use the following command to deploy your subgraph:
Authenticate
When asked, enter your Mobula API key for authentication. For further details on acquiring and using your API key, refer to the authentication section.
Monitor Deployment
Following deployment, you’ll be provided with a URL to track your subgraph’s indexing progress and status.
If you encounter issues during deployment:
subgraph.yaml
configuration.Need help? Our support team is available to assist with any questions or deployment challenges you may face.