solana-staking-csvs

Generate CSV Exports of your Solana Staking Rewards.

https://github.com/prikhi/solana-staking-csv#readme

Version on this page:0.1.1.0
Stackage Nightly 2022-01-20:0.1.1.0@rev:2
Latest on Hackage:0.1.1.0@rev:2

See all snapshots solana-staking-csvs appears in

BSD-3-Clause licensed by Pavan Rikhi
Maintained by pavan.rikhi@gmail.com
This version can be pinned in stack with:solana-staking-csvs-0.1.1.0@sha256:d3e94a9210476d5fbb882eb38b4940915af68b515ce91d39d5045f83f3070f02,3631

Module documentation for 0.1.1.0

Solana Staking CSVs

solana-staking-csvs Build Status

Generate CSVs of your Solana staking rewards.

Requires stack & a SolanaBeach API key, which you can request here.

stack run -- <YOUR_API_KEY> <ACCOUNT_PUBKEY>
stack run -- --help

TODO:

  • Add -Y <year> flag to limit years exported(or start/end flags?).
  • Allow sourcing pubkey & apikey from env variables?
  • Move SolanaBeach API to separate, published package.

Install

You can install the CLI exe by running stack install. This lets you call the executable directly instead of through stack:

$ stack install
$ export PATH="${HOME}/.local/bin/:${PATH}"
$ solana-staking-csvs <YOUR_API_KEY> 6MTkiDNY5N5PoJHN862D91jM5ztF3KQWDyBeobo2rSgK
time,amount,stakeAccount,epoch
2021-07-03 19:49:49UTC,27.115357569,8yfoauy7WhfBGA441GsHnjQedeAga8MsZXu8Pn16xMmY,197
2021-07-06 21:44:25UTC,27.197834728,8yfoauy7WhfBGA441GsHnjQedeAga8MsZXu8Pn16xMmY,198
2021-07-10 00:02:06UTC,27.231624940,8yfoauy7WhfBGA441GsHnjQedeAga8MsZXu8Pn16xMmY,199
2021-07-10 00:02:06UTC,27.233380734,7XitpDt2tUwwmmmxfbPC4jJ6cCseuBBQHw5p6kWqmqvn,199

Build

You can build the project with stack:

stack build

For development, you can enable fast builds with file-watching, documentation-building, & test-running:

stack test --haddock --fast --file-watch --pedantic

To build & open the documentation, run

stack haddock --open solana-staking-csv

LICENSE

BSD-3

Changes

CHANGELOG

master

v0.1.1.0

  • Add --cointracking flag to format data for use with CoinTracking’s Bulk Imports feature.
  • Fix lower-bounds for req.

v0.1.0.0

  • Initial release