multiwallet

package module
v0.0.0-...-87acc28 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 17 Imported by: 0

README

Build Status Coverage Status Go Report Card

multiwallet

Insight API based multi-cryptocurrency wallet

Usage

Once your go environment is configured (https://golang.org/doc/install), you should be able to run the multiwallet like this:

go get -u github.com/uzlocoin/multiwallet
cd $GOPATH/src/github.com/uzlocoin/multiwallet

go run cmd/multiwallet/main.go -h

That last command will give you some subcommands you can then add to the end (in place of the -h):

Usage:
  main [OPTIONS] <command>

Help Options:
  -h, --help  Show this help message

Available commands:
  balance         get the wallet's balances
  chaintip        return the height of the chain
  currentaddress  get the current bitcoin address
  dumptables      print out the database tables
  newaddress      get a new bitcoin address
  spend           send bitcoins
  start           start the wallet
  stop            stop the wallet
  version         print the version number

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnsuppertedCoinError = errors.New("multiwallet does not contain an implementation for the given coin")

Functions

This section is empty.

Types

type MultiWallet

type MultiWallet map[util.ExtCoinType]wallet.Wallet

func NewMultiWallet

func NewMultiWallet(cfg *config.Config) (MultiWallet, error)

func (*MultiWallet) Close

func (w *MultiWallet) Close()

func (*MultiWallet) Start

func (w *MultiWallet) Start()

func (*MultiWallet) WalletForCurrencyCode

func (w *MultiWallet) WalletForCurrencyCode(currencyCode string) (wallet.Wallet, error)

Jump to

Keyboard shortcuts

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