stakeout

command module
v0.0.0-...-9bcd7b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 8 Imported by: 0

README

Stakeout

A command line tool that prints a history of your FLOW staking rewards (e.g. for tax purposes).

stakeout

❗ 2024 Update

  • I've updated the tool to pull rewards data from the Find Labs Historical API. It should now work for all epochs after November 11, 2021.
  • The tool now outputs results in a simple CSV format for easy import into Excel, Google Sheets, etc.

Install

macOS and Linux

This installation method only works for macOS and Linux.

Paste this command in your macOS Terminal or Linux shell and hit enter:

sh -ci "$(curl -fsSL https://raw.githubusercontent.com/psiemens/stakeout/main/install.sh)"
Windows

This installation method only works on Windows 10, 8.1, or 7 (SP1, with PowerShell 3.0), on x86-64.

  1. Open PowerShell (Instructions)

  2. In PowerShell, run:

    iex "& { $(irm 'https://raw.githubusercontent.com/psiemens/stakeout/main/install.ps1') }"
    

Usage

List rewards from all epochs
stakeout <address>
Filter rewards by year
stakeout -year=2022 <address>
Filter rewards by start and end date
stakeout -start=2021-04-01 -end=2022-04-01 <address>
Save results to a CSV file
stakeout -year=2022 <address> > rewards-2022.csv

Limitations

  • The tool cannot access data from before the November 11, 2021 staking epoch.
  • The tool does not print rewards transaction IDs.

Development

Run with Go
go run main.go <address>
Build
make binaries

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL