pin2t / wts

Zold WTS API cross-platform CLI tool and Golang SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WTS client

DevOps By Rultor.com

GitHub release Build Status CircleCI Hits-of-Code

PDD status License

Install

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

Usage

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 the config.yml) - API token
  • -debug - show debug output (default false)
  • -progress - use -progress=false to hide progress spinner (default true)
  • -pull - pull wallet before operation
  • -config - use custom config file location (default $HOME/.config/wts/config.yml)

actions are:

  • id - print wallet id
  • balance - show balance
  • txns - 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 an amount ZLD to destination address (or github login @name)

About

Zold WTS API cross-platform CLI tool and Golang SDK

License:MIT License


Languages

Language:Go 95.6%Language:Shell 4.4%