Skip to content

andreysingular/staking-rewards

Repository files navigation

SubQuery - Staking Rewards

This repo contains the code that was created while working on Module 4 of SubQuery Course

The exercise__query_output files contain query results for each exercise of the module

The discord handle of the author is andreysingular#7324

Exercise 1

{
  "data": {
    "stakingRewards": {
      "nodes": [
        {
          "blockHeight": 7000064,
          "account": "16jWQMBXZNxfgXJmVL61gMX4uqtc9WTXV3c8DGx6DUKejm7",
          "date": "2021-09-26T16:50:18.001",
          "balance": "2189068638"
        },
        {
          "blockHeight": 7000064,
          "account": "13MnytvGDqJLGZbizqd8CDKJUPa9UJyzXcdxRiJEv5g2hq47",
          "date": "2021-09-26T16:50:18.001",
          "balance": "2050030971"
        },
        {
          "blockHeight": 7000064,
          "account": "12L117g377z195J3WaPshEaFC8vsNMyiMi8CTWfWVJdmBAJ4",
          "date": "2021-09-26T16:50:18.001",
          "balance": "2007885451"
        }
      ]
    }
  }
}

Exercise 2

{
  "data": {
    "sumRewards": {
      "nodes": [
        {
          "blockheight": 7000064,
          "id": "121FXj85TuKfrQM1Pdcjj4ibbJNnfsqCtMsJ24rSvGEdWDdv",
          "totalReward": "10901386603"
        },
        {
          "blockheight": 7000064,
          "id": "123MFw5gAkCjcqEhapJ5zon4Ppyp59Rq2kyNQqEHbfwvM4Ni",
          "totalReward": "1023809925"
        },
        {
          "blockheight": 7000064,
          "id": "129N6sYY5r9LnfaMY2AG9px9yYyUhN6FERPXKLfirwBrjkJv",
          "totalReward": "980420660"
        }
      ]
    }
  }
}

Exercise 3

{
  "data": {
    "sumRewards": {
      "nodes": [
        {
          "blockheight": 7013941,
          "id": "16jWQMBXZNxfgXJmVL61gMX4uqtc9WTXV3c8DGx6DUKejm7",
          "totalReward": "4049635655",
          "stakingRewardsByAccountId": {
            "nodes": [
              {
                "balance": "2189068638"
              },
              {
                "balance": "1860567017"
              }
            ]
          }
        }
      ]
    }
  }
}

Exercise 4

{
  "data": {
    "sumRewards": {
      "nodes": [
        {
          "blockheight": 6000455,
          "id": "11273kdRqdfBGL9isPvpUd32ym7Pdwy4WVFHxuKZE79EhNDy",
          "totalReward": "50244188967"
        },
        {
          "blockheight": 6000455,
          "id": "121t1sKuVp84pt5WSA6muzxE2ztrpyemRVkvqfNCdatBUtfu",
          "totalReward": "233128735"
        },
        {
          "blockheight": 6000455,
          "id": "124XiAZjTbTNxmABq1ezg7AZysMokGuB5Qnf4mQmmEcUw7jK",
          "totalReward": "43446738911"
        }
      ]
    }
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published