Download binary for your platform from Github releases: https://github.com/g4s8/wts/releases/latest
Use shell script to get latest release binary (only Linux and MacOSx):
curl -L https://raw.githubusercontent.com/g4s8/wts/master/scripts/download.sh | sh
On MacOS you can install it using brew
tool:
brew tap g4s8/.tap https://github.com/g4s8/.tap
brew install wts
Build from sources:
git clone https://github.com/g4s8/wts.git
cd wts
go build ./cmd/wts/
# target binary will be placed at $PWD/wts
Login to WTS and get API token. You may put this token to configuration file or add as command parameter explicitly.
Configuration file should be localted at ~/.config/wts/config.yml
:
---
version: V1
wts:
token: "...API token..."
debug: true # show debug output, default false
pull: true # pull wallet before each operation, default false
Usage: wts [options] (argument)
where options are:
-token <token>
(required if not specified in theconfig.yml
) - API token-debug
- show debug output (defaultfalse
)-progress
- use-progress=false
to hide progress spinner (defaulttrue
)-pull
- pull wallet before operation-config
- use custom config file location (default$HOME/.config/wts/config.yml
)
actions are:
id
- print wallet idbalance
- show balancetxns
- show transaction list, additional options are:-filter
- regex filter-limit
- transaction limit
stats
- show statistic for period-period
- days for statistic
pay <destination> <amount> <keygap> <description>
- send anamount
ZLD todestination
address (or github login @name)