Step-by-step guide for deploying a subgraph on Metis using The Graph for efficient blockchain data indexing and querying.
Deploying a subgraph on Metis using Mobula’s infrastructure is a straightforward process. This guide will walk you through the steps to get your subgraph up and running on the Metis network.
Prepare Your Subgraph
Ensure your subgraph is configured for Metis. Update your subgraph.yaml
file to reference Metis-specific contracts and events. If you don’t have a subgraph, you can clone the Uniswap V2 (NetSwap) subgraph template and modify it for Metis:
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 Metis Node
Use the following command to deploy your subgraph:
Authenticate
When prompted, provide your Mobula API key for authentication. Refer to the authentication section for more details on obtaining and using your API key.
Monitor Deployment
After deployment, you’ll receive a URL to monitor your subgraph’s indexing progress and status.
If you encounter issues during deployment:
subgraph.yaml
configuration.Need Assistance? Our support team is ready to help you with any questions or deployment challenges.