Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + var ErrOutputNotFound = errors.New("target output was not found") + var ErrOutputSpent = errors.New("target output has been spent") + func NetworkDir(dataDir string, chainParams *chaincfg.Params) string + type BtcWallet struct + func New(cfg Config) (*BtcWallet, error) + func (b *BtcWallet) BackEnd() string + func (b *BtcWallet) ComputeInputScript(tx *wire.MsgTx, signDesc *input.SignDescriptor) (*input.Script, error) + func (b *BtcWallet) ConfirmedBalance(confs int32) (btcutil.Amount, error) + func (b *BtcWallet) CreateSimpleTx(outputs []*wire.TxOut, feeRate lnwallet.SatPerKWeight, dryRun bool) (*txauthor.AuthoredTx, error) + func (b *BtcWallet) FetchInputInfo(prevOut *wire.OutPoint) (*wire.TxOut, error) + func (b *BtcWallet) GetBestBlock() (*chainhash.Hash, int32, error) + func (b *BtcWallet) GetBlock(blockHash *chainhash.Hash) (*wire.MsgBlock, error) + func (b *BtcWallet) GetBlockHash(blockHeight int64) (*chainhash.Hash, error) + func (b *BtcWallet) GetUtxo(op *wire.OutPoint, pkScript []byte, heightHint uint32) (*wire.TxOut, error) + func (b *BtcWallet) InternalWallet() *base.Wallet + func (b *BtcWallet) IsOurAddress(a btcutil.Address) bool + func (b *BtcWallet) IsSynced() (bool, int64, error) + func (b *BtcWallet) LastUnusedAddress(addrType lnwallet.AddressType) (btcutil.Address, error) + func (b *BtcWallet) ListTransactionDetails() ([]*lnwallet.TransactionDetail, error) + func (b *BtcWallet) ListUnspentWitness(minConfs, maxConfs int32) ([]*lnwallet.Utxo, error) + func (b *BtcWallet) LockOutpoint(o wire.OutPoint) + func (b *BtcWallet) NewAddress(t lnwallet.AddressType, change bool) (btcutil.Address, error) + func (b *BtcWallet) PublishTransaction(tx *wire.MsgTx) error + func (b *BtcWallet) SendOutputs(outputs []*wire.TxOut, feeRate lnwallet.SatPerKWeight) (*wire.MsgTx, error) + func (b *BtcWallet) SignMessage(pubKey *btcec.PublicKey, msg []byte) (*btcec.Signature, error) + func (b *BtcWallet) SignOutputRaw(tx *wire.MsgTx, signDesc *input.SignDescriptor) ([]byte, error) + func (b *BtcWallet) Start() error + func (b *BtcWallet) Stop() error + func (b *BtcWallet) SubscribeTransactions() (lnwallet.TransactionSubscription, error) + func (b *BtcWallet) UnlockOutpoint(o wire.OutPoint) + type Config struct + Birthday time.Time + ChainSource chain.Interface + CoinType uint32 + DataDir string + HdSeed []byte + LogDir string + NetParams *chaincfg.Params + PrivatePass []byte + PublicPass []byte + RecoveryWindow uint32 + Wallet *wallet.Wallet