Uncover the steps to deploy a subgraph on Cronos using The Graph for seamless blockchain data indexing and querying.
Creating a subgraph on Cronos using Mobula’s infrastructure is a straightforward task. This guide will help you set up and deploy your subgraph on the Cronos network efficiently.
Prepare Your Subgraph
Set up your subgraph for Cronos. Update your subgraph.yaml
file to reference Cronos-specific contracts and events. If you don’t have a subgraph, you can clone the Uniswap V2 (CronaSwap) subgraph template and adapt it for Cronos:
Install Dependencies
Make sure you have The Graph CLI installed:
Install Mobula CLI
Install our CLI tool using npm:
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.
Build Your Subgraph
Compile your subgraph before deployment:
Deploy your subgraph
Deploy your subgraph using the Mobula CLI:
Monitor Deployment
After deployment, you’ll receive a URL to monitor your subgraph’s indexing progress and status.
If you encounter deployment problems:
subgraph.yaml
configuration.Need assistance? Our support team is ready to help with any questions or deployment challenges.