Skip to main content

What types of queries can be made on The Graph?

The Graph is a decentralized protocol for indexing and querying data from blockchains and storage networks.

It enables developers to query data from public blockchains using GraphQL, an open source query language. The Graph supports a wide range of queries, including: • Token Transfers: Queries that return token transfers on the Ethereum blockchain. • Token Balances: Queries that return token balances for a given address.

• Smart Contract Events: Queries that return events emitted by smart contracts on the Ethereum blockchain. • Subgraphs: Queries that return data from custom subgraphs created by developers using The Graph’s Subgraph API. • Delegator Rewards: Queries that return rewards earned by delegators in proof-of-stake networks such as Cosmos and Polkadot.

• Governance Proposals: Queries that return governance proposals in decentralized autonomous organizations (DAOs). • Oracle Data: Queries that return data from oracles such as Chainlink and Band Protocol.

AI created text. No guarantee for the correctness of the content.

Other interesting questions on the topic of The Graph