Documentation ¶
Index ¶
- Constants
- type BitcoindWallet
- func (w *BitcoindWallet) AddTransactionListener(callback func(spvwallet.TransactionCallback))
- func (w *BitcoindWallet) AddWatchedScript(script []byte) error
- func (w *BitcoindWallet) Balance() (confirmed, unconfirmed int64)
- func (w *BitcoindWallet) ChainTip() uint32
- func (w *BitcoindWallet) Close()
- func (w *BitcoindWallet) CreateMultisigSignature(ins []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, ...) ([]spvwallet.Signature, error)
- func (w *BitcoindWallet) CurrencyCode() string
- func (w *BitcoindWallet) CurrentAddress(purpose spvwallet.KeyPurpose) btc.Address
- func (w *BitcoindWallet) EstimateFee(ins []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, ...) uint64
- func (w *BitcoindWallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int) (addr btc.Address, redeemScript []byte, err error)
- func (w *BitcoindWallet) GetFeePerByte(feeLevel spvwallet.FeeLevel) uint64
- func (w *BitcoindWallet) HasKey(addr btc.Address) bool
- func (w *BitcoindWallet) MasterPrivateKey() *hd.ExtendedKey
- func (w *BitcoindWallet) MasterPublicKey() *hd.ExtendedKey
- func (w *BitcoindWallet) Multisign(ins []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, ...) error
- func (w *BitcoindWallet) Params() *chaincfg.Params
- func (w *BitcoindWallet) ReSyncBlockchain(fromHeight int32)
- func (w *BitcoindWallet) Spend(amount int64, addr btc.Address, feeLevel spvwallet.FeeLevel) error
- func (w *BitcoindWallet) Start()
- func (w *BitcoindWallet) SweepMultisig(utxos []spvwallet.Utxo, address *btc.Address, key *hd.ExtendedKey, ...) error
- func (w *BitcoindWallet) Transactions() ([]spvwallet.Txn, error)
- type NotificationListener
Constants ¶
View Source
const ( FlagPrefix = 0x00 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 (*BitcoindWallet) AddTransactionListener ¶
func (w *BitcoindWallet) AddTransactionListener(callback func(spvwallet.TransactionCallback))
func (*BitcoindWallet) AddWatchedScript ¶
func (w *BitcoindWallet) AddWatchedScript(script []byte) error
func (*BitcoindWallet) Balance ¶
func (w *BitcoindWallet) Balance() (confirmed, unconfirmed int64)
func (*BitcoindWallet) ChainTip ¶
func (w *BitcoindWallet) ChainTip() uint32
func (*BitcoindWallet) Close ¶
func (w *BitcoindWallet) Close()
func (*BitcoindWallet) CreateMultisigSignature ¶ added in v0.2.1
func (w *BitcoindWallet) CreateMultisigSignature(ins []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, key *hd.ExtendedKey, redeemScript []byte, feePerByte uint64) ([]spvwallet.Signature, error)
func (*BitcoindWallet) CurrencyCode ¶
func (w *BitcoindWallet) CurrencyCode() string
func (*BitcoindWallet) CurrentAddress ¶
func (w *BitcoindWallet) CurrentAddress(purpose spvwallet.KeyPurpose) btc.Address
func (*BitcoindWallet) EstimateFee ¶ added in v0.3.0
func (w *BitcoindWallet) EstimateFee(ins []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, feePerByte uint64) uint64
func (*BitcoindWallet) GenerateMultisigScript ¶
func (w *BitcoindWallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int) (addr btc.Address, redeemScript []byte, err error)
func (*BitcoindWallet) GetFeePerByte ¶ added in v0.2.1
func (w *BitcoindWallet) GetFeePerByte(feeLevel spvwallet.FeeLevel) uint64
func (*BitcoindWallet) HasKey ¶ added in v0.3.0
func (w *BitcoindWallet) HasKey(addr btc.Address) 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 []spvwallet.TransactionInput, outs []spvwallet.TransactionOutput, sigs1 []spvwallet.Signature, sigs2 []spvwallet.Signature, redeemScript []byte, feePerByte uint64) error
func (*BitcoindWallet) Params ¶
func (w *BitcoindWallet) Params() *chaincfg.Params
func (*BitcoindWallet) ReSyncBlockchain ¶
func (w *BitcoindWallet) ReSyncBlockchain(fromHeight int32)
func (*BitcoindWallet) Start ¶
func (w *BitcoindWallet) Start()
func (*BitcoindWallet) SweepMultisig ¶ added in v0.2.1
func (*BitcoindWallet) Transactions ¶ added in v0.4.2
func (w *BitcoindWallet) Transactions() ([]spvwallet.Txn, error)
type NotificationListener ¶
type NotificationListener struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.