An open API service indexing awesome lists of open source software.

https://github.com/wpank/polkadot-staking-rewards

Collect staking reward details and export them into csvs
https://github.com/wpank/polkadot-staking-rewards

Last synced: about 1 month ago
JSON representation

Collect staking reward details and export them into csvs

Awesome Lists containing this project

README

          

## Polkadot Staking Rewards

### Getting Started

```
cp config.sample.json config.json
```

Fill out the specifed fields:

```
{
"priceCurrencyType": "", // The currency prices are in. E.G. "usd", "gbp", "eur", etc. full list: https://www.coingecko.com/api/documentations/v3#/simple/get_simple_supported_vs_currencies
"volumeCurrencyType": "", // Starting date of rewards
"to": "", // End date of rewards
"accounts": [
{
"name": "", // Name you want to give the account
"address": "

", // Stash address of the validator or nominator
"role": "" // either "nominator" or "validator"
}
]
}
```

```
yarn install
```

```
node index.js
```