Tutorials & Examples

... 2022-12-1 Less than 1 minute

# Tutorials & Examples

Here we will list our tutorials and explore various examples to help you get up and running in the easiest and fastest manner.

# SubQuery Examples

# SubQuery Example Projects

Example Description Topics
extrinsic-finalized-block (opens new window) Indexes extrinsics so they can be queried by their hash The simplest example with a block handler function
block-timestamp (opens new window) Indexes timestamp of each finalized block Another simple call handler function
validator-threshold (opens new window) 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 (opens new window) Indexes staking bond, rewards, and slashes from the events of finalized block More complicated event handlers with a one-to-many relationship
entity-relation (opens new window) 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 (opens new window) Indexes birth info of kitties. Complex call handlers and event handlers, with data indexed from a custom chain
Last update: December 1, 2022 23:29