Documentation
¶
Index ¶
- Constants
- func DefaultSocksPort(controlPort int) int
- func GetCredentials(repoPath string) (username, password string, err error)
- func StartNotificationListener(client *btcrpcclient.Client, params *chaincfg.Params, ...)
- type BitcoindWallet
- func (w *BitcoindWallet) AddTransactionListener(callback func(wallet.TransactionCallback))
- func (w *BitcoindWallet) AddressToScript(addr btc.Address) ([]byte, error)
- func (w *BitcoindWallet) AssociateTransactionWithOrder(txnCB wallet.TransactionCallback)
- func (w *BitcoindWallet) Balance() (confirmed, unconfirmed int64)
- func (w *BitcoindWallet) BuildArguments(rescan bool) []string
- func (w *BitcoindWallet) BumpFee(txid chainhash.Hash) (*chainhash.Hash, error)
- func (w *BitcoindWallet) ChainTip() (uint32, chainhash.Hash)
- func (w *BitcoindWallet) ChildKey(keyBytes []byte, chaincode []byte, isPrivateKey bool) (*hd.ExtendedKey, error)
- func (w *BitcoindWallet) Close()
- func (w *BitcoindWallet) CreateMultisigSignature(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, ...) ([]wallet.Signature, error)
- func (w *BitcoindWallet) CurrencyCode() string
- func (w *BitcoindWallet) CurrentAddress(purpose wallet.KeyPurpose) btc.Address
- func (w *BitcoindWallet) DecodeAddress(addr string) (btc.Address, error)
- func (w *BitcoindWallet) EstimateFee(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, ...) uint64
- func (w *BitcoindWallet) EstimateSpendFee(amount int64, feeLevel wallet.FeeLevel) (uint64, error)
- func (w *BitcoindWallet) ExchangeRates() wallet.ExchangeRates
- func (w *BitcoindWallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int, timeout time.Duration, ...) (addr btc.Address, redeemScript []byte, err error)
- func (w *BitcoindWallet) GetBlockHeight(hash *chainhash.Hash) (int32, error)
- func (w *BitcoindWallet) GetConfirmations(txid chainhash.Hash) (uint32, uint32, error)
- func (w *BitcoindWallet) GetFeePerByte(feeLevel wallet.FeeLevel) uint64
- func (w *BitcoindWallet) GetTransaction(txid chainhash.Hash) (wallet.Txn, error)
- func (w *BitcoindWallet) HasKey(addr btc.Address) bool
- func (w *BitcoindWallet) InitChan() chan struct{}
- func (w *BitcoindWallet) IsDust(amount int64) bool
- func (w *BitcoindWallet) MainNetworkEnabled() bool
- func (w *BitcoindWallet) MasterPrivateKey() *hd.ExtendedKey
- func (w *BitcoindWallet) MasterPublicKey() *hd.ExtendedKey
- func (w *BitcoindWallet) Multisign(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, ...) ([]byte, error)
- func (w *BitcoindWallet) NewAddress(purpose wallet.KeyPurpose) btc.Address
- func (w *BitcoindWallet) Params() *chaincfg.Params
- func (w *BitcoindWallet) ReSyncBlockchain(fromDate time.Time)
- func (w *BitcoindWallet) RegressionNetworkEnabled() bool
- func (w *BitcoindWallet) ScriptToAddress(script []byte) (btc.Address, error)
- func (w *BitcoindWallet) Spend(amount int64, addr btc.Address, feeLevel wallet.FeeLevel) (*chainhash.Hash, error)
- func (w *BitcoindWallet) Start()
- func (w *BitcoindWallet) SweepAddress(ins []wallet.TransactionInput, address *btc.Address, key *hd.ExtendedKey, ...) (*chainhash.Hash, error)
- func (w *BitcoindWallet) TestNetworkEnabled() bool
- func (w *BitcoindWallet) Transactions() ([]wallet.Txn, error)
- type NotificationListener
Constants ¶
View Source
const (
Account = "OpenBazaar"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultSocksPort ¶
func GetCredentials ¶
func StartNotificationListener ¶
func StartNotificationListener(client *btcrpcclient.Client, params *chaincfg.Params, listeners []func(wallet.TransactionCallback))
Types ¶
type BitcoindWallet ¶
type BitcoindWallet struct {
// contains filtered or unexported fields
}
func NewBitcoindWallet ¶
func (*BitcoindWallet) AddTransactionListener ¶
func (w *BitcoindWallet) AddTransactionListener(callback func(wallet.TransactionCallback))
func (*BitcoindWallet) AddressToScript ¶
func (w *BitcoindWallet) AddressToScript(addr btc.Address) ([]byte, error)
func (*BitcoindWallet) AssociateTransactionWithOrder ¶
func (w *BitcoindWallet) AssociateTransactionWithOrder(txnCB wallet.TransactionCallback)
AssociateTransactionWithOrder used for ORDER_PAYMENT message
func (*BitcoindWallet) Balance ¶
func (w *BitcoindWallet) Balance() (confirmed, unconfirmed int64)
func (*BitcoindWallet) BuildArguments ¶
func (w *BitcoindWallet) BuildArguments(rescan bool) []string
func (*BitcoindWallet) ChildKey ¶
func (w *BitcoindWallet) ChildKey(keyBytes []byte, chaincode []byte, isPrivateKey bool) (*hd.ExtendedKey, error)
func (*BitcoindWallet) Close ¶
func (w *BitcoindWallet) Close()
func (*BitcoindWallet) CreateMultisigSignature ¶
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 ¶
func (w *BitcoindWallet) DecodeAddress(addr string) (btc.Address, error)
func (*BitcoindWallet) EstimateFee ¶
func (w *BitcoindWallet) EstimateFee(ins []wallet.TransactionInput, outs []wallet.TransactionOutput, feePerByte uint64) uint64
func (*BitcoindWallet) EstimateSpendFee ¶
func (w *BitcoindWallet) EstimateSpendFee(amount int64, feeLevel wallet.FeeLevel) (uint64, error)
func (*BitcoindWallet) ExchangeRates ¶
func (w *BitcoindWallet) ExchangeRates() wallet.ExchangeRates
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 ¶
func (w *BitcoindWallet) GetBlockHeight(hash *chainhash.Hash) (int32, error)
func (*BitcoindWallet) GetConfirmations ¶
func (*BitcoindWallet) GetFeePerByte ¶
func (w *BitcoindWallet) GetFeePerByte(feeLevel wallet.FeeLevel) uint64
func (*BitcoindWallet) GetTransaction ¶
func (w *BitcoindWallet) GetTransaction(txid chainhash.Hash) (wallet.Txn, error)
func (*BitcoindWallet) InitChan ¶
func (w *BitcoindWallet) InitChan() chan struct{}
func (*BitcoindWallet) IsDust ¶
func (w *BitcoindWallet) IsDust(amount int64) bool
func (*BitcoindWallet) MainNetworkEnabled ¶
func (w *BitcoindWallet) MainNetworkEnabled() bool
MainNetworkEnabled indicates if the current network being used is the live Network
func (*BitcoindWallet) MasterPrivateKey ¶
func (w *BitcoindWallet) MasterPrivateKey() *hd.ExtendedKey
func (*BitcoindWallet) MasterPublicKey ¶
func (w *BitcoindWallet) MasterPublicKey() *hd.ExtendedKey
func (*BitcoindWallet) NewAddress ¶
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) RegressionNetworkEnabled ¶
func (w *BitcoindWallet) RegressionNetworkEnabled() bool
RegressionNetworkEnabled indicates if the current network being used is Regression Network
func (*BitcoindWallet) ScriptToAddress ¶
func (w *BitcoindWallet) ScriptToAddress(script []byte) (btc.Address, error)
func (*BitcoindWallet) Start ¶
func (w *BitcoindWallet) Start()
func (*BitcoindWallet) SweepAddress ¶
func (w *BitcoindWallet) SweepAddress(ins []wallet.TransactionInput, address *btc.Address, key *hd.ExtendedKey, redeemScript *[]byte, feeLevel wallet.FeeLevel) (*chainhash.Hash, error)
func (*BitcoindWallet) TestNetworkEnabled ¶
func (w *BitcoindWallet) TestNetworkEnabled() bool
TestNetworkEnabled indicates if the current network being used is Test Network
func (*BitcoindWallet) Transactions ¶
func (w *BitcoindWallet) Transactions() ([]wallet.Txn, error)
type NotificationListener ¶
type NotificationListener struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.