Pre-Built binaries for Linux, MacOS, and Windows for the latest release are available on the github page here.
We'll need to first install Rust. You may need to add Cargo's bin directory to your PATH environment variable. Restarting your computer will do this for you automatically.
bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Once done, clone this repo and build the polkadot-rewards software
```bash
git clone https://github.com/insipx/polkadot-rewards.git
cd polkadot-rewards
cargo build --release
cd ./target/release ```
You can now use the binary ./polkadot-rewards
from here.
./polkadot-rewards --from "YYYY-MM-DD HH:MM:SS" --network "KSM" --address "Addr-Without-Leading-0x" --currency "eur"
```bash
Usage: polkadot-rewards [-f
Polkadot Staking Rewards CLI-App
Options: -f, --from date to start crawling for staking rewards. Format: "YYY-MM-DD HH:MM:SS" -t, --to date to stop crawling for staking rewards. Format: "YYY-MM-DD HH:MM:SS" -n, --network network to crawl for rewards. One of: [Polkadot, Kusama, Moonriver, KSM, DOT, MOVR] -c, --currency the fiat currency which should be used for prices -a, --address network-formatted address to get staking rewards for. --date-format date format to use in output CSV data. Uses rfc2822 by default. EX: "%Y-%m-%d %H:%M:%S". -p, --folder directory to output completed CSV to. -s, --stdout output the CSV file to STDOUT. Disables creating a new file. -v, --verbose get extra information about the program's execution. --help display usage information ```