Step-by-step guide on deploying a subgraph on zkLink using using The Graph for optimized blockchain data indexing.
Prepare Your Subgraph
subgraph.yaml
file to reference zkLink-specific contracts and events. If you don’t have any subgraph, you can clone the Uniswap V2 (Linkswap) subgraph template and modify it for zkLink:Install Dependencies
Build Your Subgraph
Create the Subgraph
Deploy to Mobula's zkLink Node
Authenticate
Monitor Deployment
subgraph.yaml
configuration.