bitcoind

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Account = "OpenBazaar"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitcoindWallet

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

func NewBitcoindWallet

func NewBitcoindWallet(mnemonic string, params *chaincfg.Params, repoPath string, trustedPeer string, binary string, username string, password string, useTor bool, torControlPort int) *BitcoindWallet

func (*BitcoindWallet) AddTransactionListener

func (w *BitcoindWallet) AddTransactionListener(callback func(wallet.TransactionCallback))

func (*BitcoindWallet) AddWatchedScript

func (w *BitcoindWallet) AddWatchedScript(script []byte) error

func (*BitcoindWallet) AddressToScript added in v0.6.1

func (w *BitcoindWallet) AddressToScript(addr btc.Address) ([]byte, error)

func (*BitcoindWallet) Balance

func (w *BitcoindWallet) Balance() (confirmed, unconfirmed int64)

func (*BitcoindWallet) BuildArguments added in v0.5.0

func (w *BitcoindWallet) BuildArguments(rescan bool) []string

func (*BitcoindWallet) BumpFee added in v0.5.3

func (w *BitcoindWallet) BumpFee(txid chainhash.Hash) (*chainhash.Hash, error)

func (*BitcoindWallet) ChainTip

func (w *BitcoindWallet) ChainTip() (uint32, chainhash.Hash)

func (*BitcoindWallet) Close

func (w *BitcoindWallet) Close()

func (*BitcoindWallet) CreateMultisigSignature added in v0.2.1

func (w *BitcoindWallet) CreateMultisigSignature(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, key *hd.ExtendedKey, redeemScript []byte, feePerByte uint64) ([]wallet.Signature, error)

func (*BitcoindWallet) CurrencyCode

func (w *BitcoindWallet) CurrencyCode() string

func (*BitcoindWallet) CurrentAddress

func (w *BitcoindWallet) CurrentAddress(purpose wallet.KeyPurpose) btc.Address

func (*BitcoindWallet) DecodeAddress added in v0.6.1

func (w *BitcoindWallet) DecodeAddress(addr string) (btc.Address, error)

func (*BitcoindWallet) EstimateFee added in v0.3.0

func (w *BitcoindWallet) EstimateFee(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, feePerByte uint64) uint64

func (*BitcoindWallet) EstimateSpendFee added in v0.9.2

func (w *BitcoindWallet) EstimateSpendFee(amount int64, feeLevel wallet.FeeLevel) (uint64, error)

func (*BitcoindWallet) GenerateMultisigScript

func (w *BitcoindWallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int, timeout time.Duration, timeoutKey *hd.ExtendedKey) (addr btc.Address, redeemScript []byte, err error)

func (*BitcoindWallet) GetBlockHeight added in v0.9.2

func (w *BitcoindWallet) GetBlockHeight(hash *chainhash.Hash) (int32, error)

func (*BitcoindWallet) GetConfirmations added in v0.5.1

func (w *BitcoindWallet) GetConfirmations(txid chainhash.Hash) (uint32, uint32, error)

func (*BitcoindWallet) GetFeePerByte added in v0.2.1

func (w *BitcoindWallet) GetFeePerByte(feeLevel wallet.FeeLevel) uint64

func (*BitcoindWallet) GetTransaction added in v0.5.4

func (w *BitcoindWallet) GetTransaction(txid chainhash.Hash) (wallet.Txn, error)

func (*BitcoindWallet) HasKey added in v0.3.0

func (w *BitcoindWallet) HasKey(addr btc.Address) bool

func (*BitcoindWallet) IsDust added in v0.6.3

func (w *BitcoindWallet) IsDust(amount int64) bool

func (*BitcoindWallet) MasterPrivateKey

func (w *BitcoindWallet) MasterPrivateKey() *hd.ExtendedKey

func (*BitcoindWallet) MasterPublicKey

func (w *BitcoindWallet) MasterPublicKey() *hd.ExtendedKey

func (*BitcoindWallet) Multisign added in v0.2.1

func (w *BitcoindWallet) Multisign(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, sigs1 []wallet.Signature, sigs2 []wallet.Signature, redeemScript []byte, feePerByte uint64, broadcast bool) ([]byte, error)

func (*BitcoindWallet) NewAddress added in v0.5.3

func (w *BitcoindWallet) NewAddress(purpose wallet.KeyPurpose) btc.Address

func (*BitcoindWallet) Params

func (w *BitcoindWallet) Params() *chaincfg.Params

func (*BitcoindWallet) ReSyncBlockchain

func (w *BitcoindWallet) ReSyncBlockchain(fromDate time.Time)

func (*BitcoindWallet) ScriptToAddress added in v0.6.1

func (w *BitcoindWallet) ScriptToAddress(script []byte) (btc.Address, error)

func (*BitcoindWallet) Spend

func (w *BitcoindWallet) Spend(amount int64, addr btc.Address, feeLevel wallet.FeeLevel) (*chainhash.Hash, error)

func (*BitcoindWallet) Start

func (w *BitcoindWallet) Start()

func (*BitcoindWallet) SweepAddress added in v0.5.3

func (w *BitcoindWallet) SweepAddress(utxos []wallet.Utxo, address *btc.Address, key *hd.ExtendedKey, redeemScript *[]byte, feeLevel wallet.FeeLevel) (*chainhash.Hash, error)

func (*BitcoindWallet) Transactions added in v0.4.2

func (w *BitcoindWallet) Transactions() ([]wallet.Txn, error)

type NotificationListener

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

Jump to

Keyboard shortcuts

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