indexing-subgraph

Develop, deploy, and query Avalanche smart contract subgraphs with Graph CLI.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Ayomisco/avaxskills --skill indexing-subgraph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: indexing-subgraph
Source: https://github.com/Ayomisco/avaxskills/tree/main/website/public/indexing-subgraph
Command: npx skills add https://github.com/Ayomisco/avaxskills --skill indexing-subgraph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @graphprotocol/graph-cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation and deployment of subgraphs for indexing Avalanche smart contract events, facilitating efficient data querying and analytics.

Core Features & Use Cases

  • Subgraph Development: Guides users through schema creation, configuration, and deployment processes for Avalanche-compatible subgraphs.
  • Event Indexing: Supports capturing events from multiple contracts on Avalanche, including Fuji and mainnet networks.
  • Use Case: Build an analytics dashboard that displays real-time user interactions or historical transaction data from Avalanche smart contracts with GraphQL queries.

Quick Start

Use the subgraph skill to initialize a new project, set up schema, configure data sources, and deploy a subgraph to Avalanche networks.

Frequently Asked Questions about indexing-subgraph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index Avalanche smart contract events for on-chain data analytics?

To index Avalanche smart contract events, you can use The Graph Protocol to develop, deploy, and query subgraphs. This enables scalable on-chain data analysis and real-time event tracking for decentralized dApp analytics.

What is the best way to query historical transaction data from Avalanche contracts?

The best way to query historical transaction data from Avalanche contracts is by deploying a subgraph. It indexes blockchain events efficiently, allowing you to retrieve specific historical transaction data using GraphQL queries.

Do I need the Graph CLI to set up a subgraph for Avalanche networks?

Yes, you need the Graph CLI to set up a subgraph for Avalanche networks. It is a required dependency for initializing projects, configuring data sources, defining schema files, and managing deployment configurations.

Can I capture events from multiple contracts on Avalanche Fuji and mainnet?

Yes, you can capture events from multiple contracts on Avalanche. Subgraph development supports indexing event data across both the Fuji testnet and Avalanche mainnet networks for comprehensive dApp analytics.

How do I configure schema files and data sources for Avalanche subgraph deployment?

You configure schema files and data sources by initializing a new subgraph project. This process involves defining the GraphQL schema, mapping contract addresses to data sources, and setting up deployment configurations for Avalanche networks.

What are the limitations of using subgraphs for decentralized dApp analytics?

Subgraph indexing for decentralized dApp analytics requires setting up schema files and deployment configurations. It is specifically tailored for Avalanche smart contracts and relies on the Graph Protocol architecture for scalable querying.