wallet

package
v0.0.0-...-65385de Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package wallet provides a simple interface to btcwallet and electrum.

This is designed to make accepting and sending bitcoin really easy using Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func Create

func Create(path, privPass string, seed []byte) (*Wallet, error)

Create creates a wallet with the specified path, private key password and seed. Seed can be created using: hdkeychain.GenerateSeed(hdkeychain.RecommendedSeedLen)

func Load

func Load(path, privPass string, seed []byte) (*Wallet, error)

Load loads a wallet with the specified path, private key password and seed.

func (*Wallet) Addresses

func (w *Wallet) Addresses() ([]btcutil.Address, error)

Addresses returns all addresses generated in the current bitcoin wallet.

func (*Wallet) GenAddresses

func (w *Wallet) GenAddresses(n int) ([]btcutil.Address, error)

GenAddresses generates a number of addresses for the wallet.

func (*Wallet) SendBitcoin

func (w *Wallet) SendBitcoin(amounts map[string]btcutil.Amount, minconf int) error

SendBitcoin sends some amount of bitcoin specifying minimum confirmations.

Jump to

Keyboard shortcuts

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