Avalanche Integrates The Graph to Expand Querying and Indexing on Avalanche

The Graph, the indexing and query layer of the decentralized web, is now integrated with Avalanche, a decentralized smart contracts platform built for the scale of global finance, with near-instant transaction finality.

With The Graph integration on the hosted service, developers building on Avalanche can query custom on-chain data requests, without having to run a full node, via subgraphs, which are indexes of specifically-defined blockchain data. As of February, more than 9,000 subgraphs have been deployed with many more coming online as The Graph continues to expand its support across major layer 1 blockchains.

“Decentralized, reliable data is at the core of high-quality Web3 applications. The Graph’s data suite and tooling expands the options and opportunities for developers building on Avalanche,” said John Wu, president of Ava Labs.

Expanded access to blockchain data hasn’t gone unnoticed by the Web3 developer community. In January 2021, The Graph’s hosted service saw queries increase to north of 11 billion, with 100x growth during 2020.

This growth is also mirrored within Avalanche. Since the launch of the Avalanche-Ethereum Bridge (AEB) on Feb. 8, smart contract activity on Avalanche has boomed, with transactions having increased by 2,007 per cent to more than 1,140,000, and unique wallets increasing by 2,834 per cent to top 63,000.

The Power of Decentralized Indexing

The Graph fully decentralizes the API and query layers of Web3. With subgraphs (open APIs), devs can index, map, and query on-chain data using GraphQL, the native query language of the protocol, without running local or hosted nodes. Instead, the subgraphs are deployed to a registry, and subsequently, Indexers who stake and run a Graph Node will index the subgraph.

This process allows anyone to create and deploy a subgraph, and earn The Graph’s native token, $GRT, as a reward for running a graph node. End-to-end, there are no centralized intermediaries that control this process. Data is open and accessible to all network participants.

For developers, this means lower costs and shorter times in development as indexing blockchains have fewer participants, and there’s infinitely more trust as subgraphs are maintained by a decentralized network of nodes–the more nodes that join The Graph, the stronger the network becomes.

Build Powerful Dapps on Avalanche Using The Graph

Dapp developers can create highly performant applications by combining the power, speed, and ease-of-use unlocked through The Graph’s support of Avalanche.

Applications deployed on Avalanche will benefit from near-instant transaction finality and thousands of transactions per second, while developers using The Graph’s simple, responsive, customizable queries have complete control over their use of on-chain data. Interacting with other blockchains will be simplified thanks to The Graph’s large, diverse set of subgraphs.

Developers can secure on-chain data with Avalanche and build an entire off-chain ecosystem using The Graph–all in a fully trustless manner.

Together, these technologies open the door for more developers to accelerate the journey from idea to application to market impact. For more information on how to use The Graph with Avalanche, the following material is available: creating subgraphs, becoming an Indexer, delegation guide, and curator program  You can find a demo around how to build a subgraph via The Graph using this link as well as this link. Any technical questions can be asked on The Graph’s Discord.