What you’ll need
- Basic knowledge of The Graph and subgraphs.
- Your subgraph project files
- The Graph CLI installed
- A Mobula API key (for authentication)
Walkthrough
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: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.
Best Practices
- Regularly update your subgraph to ensure compatibility with the latest Metis network changes.
- Test your subgraph thoroughly on a testnet before deploying to mainnet.
- Monitor your subgraph’s performance and optimize queries for efficiency.
Troubleshooting
If you encounter issues during deployment:- Double-check your
subgraph.yamlconfiguration. - Ensure you’re using the correct network name and Mobula node URLs.
- Verify your API key is valid and has the necessary permissions.