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
Set up your subgraph for Linea. Update your
subgraph.yaml file to reference Linea-specific contracts and events. If you don’t have a subgraph, you can clone the Uniswap V2 (PancakeSwap) subgraph template and adapt it for Linea:Setup API Key
Configure your API key with the CLI. You can get your API key from the Dashboard.
Please refer to the authentication section for detailed steps on obtaining your API key.
Best Practices
- Keep your subgraph up to date to ensure it aligns with the latest Linea network changes.
- Conduct comprehensive testing on a testnet before mainnet deployment.
- Continuously monitor performance and fine-tune queries for maximum efficiency.
Troubleshooting
If you encounter deployment problems:- Double-check your
subgraph.yamlconfiguration. - Verify that the network name and Mobula node URLs are correct.
- Make sure your API key is valid and properly authorized.