SubQuery Example Projects
Less than 1 minute
SubQuery Example Projects
Example | Description | Topics |
---|---|---|
extrinsic-finalized-block | Indexes extrinsics so they can be queried by their hash | The simplest example with a block handler function |
block-timestamp | Indexes timestamp of each finalized block | Another simple call handler function |
validator-threshold | Indexes the least staking amount required for a validator to be elected. | More complicated block handler function that makes external calls to the @polkadot/api for additional on-chain data |
sum-reward | Indexes staking bond, rewards, and slashes from the events of finalized block | More complicated event handlers with a one-to-many relationship |
entity-relation | Indexes balance transfers between accounts, also indexes utility batchAll to find out the content of the extrinsic calls | One-to-many and many-to-many relationships and complicated extrinsic handling |
kitty | Indexes birth info of kitties. | Complex call handlers and event handlers, with data indexed from a custom chain |