Skip to content

lamcc21/staking-records

Repository files navigation

SubQuery Example - Summary of Rewards and Slashes

This subquery indexes staking bonds, rewards and slashes of each finalized blocks.

This is an example of EventHandler, provides records of all the accounts that have participated in staking, and summarize their total rewards and slashes. In the end, calculate the total earnings.

Get Started

1. install dependencies

yarn

2. generate types

yarn codegen

3. build

yarn build

4. run locally

yarn start:docker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published