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
- Host: GitHub
- URL: https://github.com/wpank/polkadot-staking-rewards
- Owner: wpank
- Created: 2021-01-18T19:25:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T17:36:49.000Z (over 5 years ago)
- Last Synced: 2023-03-02T03:21:19.465Z (over 3 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
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
```