multiwallet

package module
v0.0.0-...-250b327 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 14 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/OpenBazaar/multiwallet
cd $GOPATH/src/github.com/OpenBazaar/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[wallet.CoinType]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