Versions in this module Expand all Collapse all v8 v8.0.10 Jun 23, 2022 v8.0.3 Jun 27, 2022 v8.0.2 Jun 27, 2022 v8.0.1 Jun 27, 2022 v8.0.0 Jun 27, 2022 Changes in this version + const DefaultAccountGapLimit + const DefaultGapLimit + const InsecurePubPassphrase + const OutputSelectionAlgorithmAll + const OutputSelectionAlgorithmDefault + var SimulationPassphrase = []byte("password") + func Create(ctx context.Context, db DB, pubPass, privPass, seed []byte, ...) error + func CreateWatchOnly(ctx context.Context, db DB, extendedPubKey string, pubPass []byte, ...) error + func CurrentAgendas(params *chaincfg.Params) (version uint32, agendas []chaincfg.ConsensusDeployment) + func DisableLog() + func UnstableAPI(w *Wallet) unstableAPI + func UseLogger(logger slog.Logger) + func VerifyMessage(msg string, addr dcrutil.Address, sig []byte, params dcrutil.AddressParams) (bool, error) + type AccountBalance struct + Account uint32 + TotalBalance dcrutil.Amount + type AccountNotification struct + AccountName string + AccountNumber uint32 + ExternalKeyCount uint32 + ImportedKeyCount uint32 + InternalKeyCount uint32 + type AccountNotificationsClient struct + C chan *AccountNotification + func (c *AccountNotificationsClient) Done() + type AccountResult struct + TotalBalance dcrutil.Amount + type AccountTotalReceivedResult struct + AccountName string + AccountNumber uint32 + LastConfirmation int32 + TotalReceived dcrutil.Amount + type AccountsResult struct + Accounts []AccountResult + CurrentBlockHash *chainhash.Hash + CurrentBlockHeight int32 + type AddressP2PKHv0 interface + type AgendaChoice struct + AgendaID string + ChoiceID string + type AllTicketStatus struct + Hash chainhash.Hash + Level int + Status int + func (a AllTicketStatus) String() string + type BIP44AccountXpubPather interface + BIP44AccountXpubPath func() (xpub *hdkeychain.ExtendedKey, branch, child uint32) + type BIP44XpubP2PKHv0 interface + type Block struct + Header *wire.BlockHeader + Transactions []TransactionSummary + type BlockIdentifier struct + func NewBlockIdentifierFromHash(hash *chainhash.Hash) *BlockIdentifier + func NewBlockIdentifierFromHeight(height int32) *BlockIdentifier + type BlockIdentity struct + Hash chainhash.Hash + Height int32 + func (b *BlockIdentity) None() bool + type BlockInfo struct + Confirmations int32 + Hash chainhash.Hash + Header []byte + Height int32 + StakeInvalidated bool + Timestamp int64 + type BlockNode struct + Filter *gcs.Filter + Hash *chainhash.Hash + Header *wire.BlockHeader + func NewBlockNode(header *wire.BlockHeader, hash *chainhash.Hash, filter *gcs.Filter) *BlockNode + type Caller interface + Call func(ctx context.Context, method string, res interface{}, args ...interface{}) error + type Config struct + AccountGapLimit int + AddressReuse bool + AllowHighFees bool + DB DB + DisableCoinTypeUpgrades bool + GapLimit int + Params *chaincfg.Params + PoolAddress dcrutil.Address + PoolFees float64 + PubPassphrase []byte + RelayFee float64 + StakePoolColdExtKey string + TicketFee float64 + VotingAddress dcrutil.Address + VotingEnabled bool + type ConfirmationNotification struct + BlockHash *chainhash.Hash + BlockHeight int32 + Confirmations int32 + TxHash *chainhash.Hash + type ConfirmationNotificationsClient struct + func (c *ConfirmationNotificationsClient) Recv() ([]ConfirmationNotification, error) + func (c *ConfirmationNotificationsClient) Watch(txHashes []*chainhash.Hash, stopAfter int32) + type CreatedTx struct + ChangeAddr dcrutil.Address + ChangeIndex int + Fee dcrutil.Amount + MsgTx *wire.MsgTx + type CreditCategory byte + const CreditGenerate + const CreditImmature + const CreditReceive + func RecvCategory(details *udb.TxDetails, syncHeight int32, chainParams *chaincfg.Params) CreditCategory + func (c CreditCategory) String() string + type DB interface + func CreateDB(driver string, args ...interface{}) (DB, error) + func OpenDB(driver string, args ...interface{}) (DB, error) + type DialFunc func(ctx context.Context, network, addr string) (net.Conn, error) + type GetTicketsResult struct + Tickets []*TicketSummary + type GetTransactionsResult struct + MinedTransactions []Block + UnminedTransactions []TransactionSummary + type MainTipChangedNotification struct + AttachedBlocks []*chainhash.Hash + DetachedBlocks []*chainhash.Hash + NewHeight int32 + type MainTipChangedNotificationsClient struct + C chan *MainTipChangedNotification + func (c *MainTipChangedNotificationsClient) Done() + type MissingCFilterProgress struct + BlockHeightEnd int32 + BlockHeightStart int32 + Err error + type NetworkBackend interface + LoadTxFilter func(ctx context.Context, reload bool, addrs []dcrutil.Address, ...) error + Rescan func(ctx context.Context, blocks []chainhash.Hash, ...) error + StakeDifficulty func(ctx context.Context) (dcrutil.Amount, error) + type NextAddressCallOption func(*nextAddressCallOptions) + func WithGapPolicyError() NextAddressCallOption + func WithGapPolicyIgnore() NextAddressCallOption + func WithGapPolicyWrap() NextAddressCallOption + type NotificationServer struct + func (s *NotificationServer) AccountNotifications() AccountNotificationsClient + func (s *NotificationServer) ConfirmationNotifications(ctx context.Context) *ConfirmationNotificationsClient + func (s *NotificationServer) MainTipChangedNotifications() MainTipChangedNotificationsClient + func (s *NotificationServer) TransactionNotifications() TransactionNotificationsClient + type OutputInfo struct + Amount dcrutil.Amount + FromCoinbase bool + Received time.Time + type OutputKind byte + const OutputKindCoinbase + const OutputKindNormal + const OutputKindStakebase + type OutputRedeemer struct + InputIndex uint32 + TxHash chainhash.Hash + type OutputSelectionAlgorithm uint + type OutputSelectionPolicy struct + Account uint32 + RequiredConfirmations int32 + type P2SHMultiSigOutput struct + ContainingBlock BlockIdentity + M uint8 + N uint8 + OutPoint wire.OutPoint + OutputAmount dcrutil.Amount + P2SHAddress *dcrutil.AddressScriptHash + RedeemScript []byte + Redeemer *OutputRedeemer + type Peer interface + Blocks func(ctx context.Context, blockHashes []*chainhash.Hash) ([]*wire.MsgBlock, error) + CFilters func(ctx context.Context, blockHashes []*chainhash.Hash) ([]*gcs.Filter, error) + Headers func(ctx context.Context, blockLocators []*chainhash.Hash, hashStop *chainhash.Hash) ([]*wire.BlockHeader, error) + PublishTransactions func(ctx context.Context, txs ...*wire.MsgTx) error + type PurchaseTicketsRequest struct + CSPPServer string + ChangeAccount uint32 + Count int + DialCSPPServer DialFunc + DontSignTx bool + Expiry int32 + MinConf int32 + MixedAccount uint32 + MixedAccountBranch uint32 + MixedSplitAccount uint32 + SourceAccount uint32 + VSPAddress dcrutil.Address + VSPFees float64 + VotingAccount uint32 + VotingAddress dcrutil.Address + type PurchaseTicketsResponse struct + SplitTx *wire.MsgTx + TicketHashes []*chainhash.Hash + Tickets []*wire.MsgTx + type RescanFilter struct + func NewRescanFilter(addresses []dcrutil.Address, unspentOutPoints []*wire.OutPoint) *RescanFilter + func (f *RescanFilter) AddAddress(a dcrutil.Address) + func (f *RescanFilter) AddUnspentOutPoint(op *wire.OutPoint) + func (f *RescanFilter) ExistsAddress(a dcrutil.Address) (ok bool) + func (f *RescanFilter) ExistsUnspentOutPoint(op *wire.OutPoint) bool + func (f *RescanFilter) RemoveAddress(a dcrutil.Address) + func (f *RescanFilter) RemoveUnspentOutPoint(op *wire.OutPoint) + type RescanProgress struct + Err error + ScannedThrough int32 + type SecpPubKeyHash160er interface + SecpPubKeyHash160 func() *[20]byte + type SecpPubKeyHasher interface + SecpPubKeyHash func(version uint16) ([]byte, error) + type SecpPubKeyer interface + SecpPubKey func() []byte + type SidechainForest struct + func (f *SidechainForest) AddBlockNode(n *BlockNode) bool + func (f *SidechainForest) Prune(mainChainHeight int32, params *chaincfg.Params) + func (f *SidechainForest) PruneTree(root *chainhash.Hash) + type SignatureError struct + Error error + InputIndex uint32 + type StakeDifficultyInfo struct + BlockHash *chainhash.Hash + BlockHeight int64 + StakeDifficulty int64 + type StakeInfoData struct + AllMempoolTix uint32 + BlockHeight int64 + Expired uint32 + Immature uint32 + Live uint32 + Missed uint32 + OwnMempoolTix uint32 + PoolSize uint32 + Revoked uint32 + Sdiff dcrutil.Amount + TotalSubsidy dcrutil.Amount + Unspent uint32 + UnspentExpired uint32 + Voted uint32 + type TicketStatus int8 + const TicketStatusExpired + const TicketStatusImmature + const TicketStatusLive + const TicketStatusMissed + const TicketStatusRevoked + const TicketStatusUnknown + const TicketStatusUnmined + const TicketStatusVoted + type TicketSummary struct + Spender *TransactionSummary + Status TicketStatus + Ticket *TransactionSummary + type TransactionNotifications struct + AttachedBlocks []Block + DetachedBlocks []*chainhash.Hash + NewBalances []AccountBalance + UnminedTransactionHashes []*chainhash.Hash + UnminedTransactions []TransactionSummary + type TransactionNotificationsClient struct + C <-chan *TransactionNotifications + func (c *TransactionNotificationsClient) Done() + type TransactionOutput struct + ContainingBlock BlockIdentity + OutPoint wire.OutPoint + Output wire.TxOut + OutputKind OutputKind + ReceiveTime time.Time + type TransactionSummary struct + Fee dcrutil.Amount + Hash *chainhash.Hash + MyInputs []TransactionSummaryInput + MyOutputs []TransactionSummaryOutput + Timestamp int64 + Transaction []byte + Type TransactionType + type TransactionSummaryInput struct + Index uint32 + PreviousAccount uint32 + PreviousAmount dcrutil.Amount + type TransactionSummaryOutput struct + Account uint32 + Address dcrutil.Address + Amount dcrutil.Amount + Index uint32 + Internal bool + OutputScript []byte + type TransactionType int8 + const TransactionTypeCoinbase + const TransactionTypeRegular + const TransactionTypeRevocation + const TransactionTypeTicketPurchase + const TransactionTypeVote + func TxTransactionType(tx *wire.MsgTx) TransactionType + type V0Scripter interface + ScriptV0 func() []byte + type Wallet struct + AllowHighFees bool + DisallowFree bool + Manager *udb.Manager + NtfnServer *NotificationServer + StakeMgr *udb.StakeStore + TxStore *udb.Store + func Open(ctx context.Context, cfg *Config) (*Wallet, error) + func (w *Wallet) AbandonTransaction(ctx context.Context, hash *chainhash.Hash) error + func (w *Wallet) AcceptMempoolTx(ctx context.Context, tx *wire.MsgTx) error + func (w *Wallet) AccountBranchAddressRange(account, branch, start, end uint32) ([]dcrutil.Address, error) + func (w *Wallet) AccountName(ctx context.Context, accountNumber uint32) (string, error) + func (w *Wallet) AccountNumber(ctx context.Context, accountName string) (uint32, error) + func (w *Wallet) AccountOfAddress(ctx context.Context, a dcrutil.Address) (uint32, error) + func (w *Wallet) AccountProperties(ctx context.Context, acct uint32) (*udb.AccountProperties, error) + func (w *Wallet) Accounts(ctx context.Context) (*AccountsResult, error) + func (w *Wallet) AddTicket(ctx context.Context, ticket *wire.MsgTx) error + func (w *Wallet) AddressInfo(ctx context.Context, a dcrutil.Address) (udb.ManagedAddress, error) + func (w *Wallet) AgendaChoices(ctx context.Context) (choices []AgendaChoice, voteBits uint16, err error) + func (w *Wallet) AllTicketHashes(ctx context.Context, rpcCaller Caller) ([]AllTicketStatus, error) + func (w *Wallet) BIP0044BranchNextIndexes(ctx context.Context, account uint32) (extChild, intChild uint32, err error) + func (w *Wallet) BalanceToMaintain() dcrutil.Amount + func (w *Wallet) BlockHeader(ctx context.Context, blockHash *chainhash.Hash) (*wire.BlockHeader, error) + func (w *Wallet) BlockInMainChain(ctx context.Context, hash *chainhash.Hash) (haveBlock, invalidated bool, err error) + func (w *Wallet) BlockInfo(ctx context.Context, blockID *BlockIdentifier) (*BlockInfo, error) + func (w *Wallet) BlockLocators(ctx context.Context, sidechain []*BlockNode) ([]*chainhash.Hash, error) + func (w *Wallet) CFilter(ctx context.Context, blockHash *chainhash.Hash) (*gcs.Filter, error) + func (w *Wallet) CalculateAccountBalance(ctx context.Context, account uint32, confirms int32) (udb.Balances, error) + func (w *Wallet) CalculateAccountBalances(ctx context.Context, confirms int32) (map[uint32]*udb.Balances, error) + func (w *Wallet) ChainParams() *chaincfg.Params + func (w *Wallet) ChainSwitch(ctx context.Context, forest *SidechainForest, chain []*BlockNode, ...) ([]*BlockNode, error) + func (w *Wallet) ChangePrivatePassphrase(ctx context.Context, old, new []byte) error + func (w *Wallet) ChangePublicPassphrase(ctx context.Context, old, new []byte) error + func (w *Wallet) CoinType(ctx context.Context) (uint32, error) + func (w *Wallet) CoinTypePrivKey(ctx context.Context) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) CommittedTickets(ctx context.Context, tickets []*chainhash.Hash) ([]*chainhash.Hash, []dcrutil.Address, error) + func (w *Wallet) Consolidate(ctx context.Context, inputs int, account uint32, address dcrutil.Address) (*chainhash.Hash, error) + func (w *Wallet) CreateMultisigTx(ctx context.Context, account uint32, amount dcrutil.Amount, ...) (*CreatedTx, dcrutil.Address, []byte, error) + func (w *Wallet) CreateSignature(ctx context.Context, tx *wire.MsgTx, idx uint32, addr dcrutil.Address, ...) (sig, pubkey []byte, err error) + func (w *Wallet) CurrentAddress(account uint32) (dcrutil.Address, error) + func (w *Wallet) DiscoverActiveAddresses(ctx context.Context, p Peer, startBlock *chainhash.Hash, discoverAccts bool) error + func (w *Wallet) DumpWIFPrivateKey(ctx context.Context, addr dcrutil.Address) (string, error) + func (w *Wallet) EvaluateBestChain(ctx context.Context, f *SidechainForest) ([]*BlockNode, error) + func (w *Wallet) FetchAllRedeemScripts(ctx context.Context) ([][]byte, error) + func (w *Wallet) FetchHeaders(ctx context.Context, p Peer) (count int, rescanFrom chainhash.Hash, rescanFromHeight int32, ...) + func (w *Wallet) FetchMissingCFilters(ctx context.Context, p Peer) error + func (w *Wallet) FetchMissingCFiltersWithProgress(ctx context.Context, p Peer, progress chan<- MissingCFilterProgress) + func (w *Wallet) FetchOutput(ctx context.Context, outPoint *wire.OutPoint) (*wire.TxOut, error) + func (w *Wallet) FetchP2SHMultiSigOutput(ctx context.Context, outPoint *wire.OutPoint) (*P2SHMultiSigOutput, error) + func (w *Wallet) FindEligibleOutputs(ctx context.Context, account uint32, minconf int32, currentHeight int32) ([]udb.Credit, error) + func (w *Wallet) GenerateVoteTx(ctx context.Context, blockHash *chainhash.Hash, height int32, ...) (*wire.MsgTx, error) + func (w *Wallet) GetTicketInfo(ctx context.Context, hash *chainhash.Hash) (*TicketSummary, *wire.BlockHeader, error) + func (w *Wallet) GetTicketInfoPrecise(ctx context.Context, rpcCaller Caller, hash *chainhash.Hash) (*TicketSummary, *wire.BlockHeader, error) + func (w *Wallet) GetTickets(ctx context.Context, f func([]*TicketSummary, *wire.BlockHeader) (bool, error), ...) error + func (w *Wallet) GetTicketsPrecise(ctx context.Context, rpcCaller Caller, ...) error + func (w *Wallet) GetTransactions(ctx context.Context, f func(*Block) (bool, error), ...) error + func (w *Wallet) GetTransactionsByHashes(ctx context.Context, txHashes []*chainhash.Hash) (txs []*wire.MsgTx, notFound []*wire.InvVect, err error) + func (w *Wallet) HaveAddress(ctx context.Context, a dcrutil.Address) (bool, error) + func (w *Wallet) ImportP2SHRedeemScript(ctx context.Context, script []byte) (*dcrutil.AddressScriptHash, error) + func (w *Wallet) ImportPrivateKey(ctx context.Context, wif *dcrutil.WIF) (string, error) + func (w *Wallet) ImportScript(ctx context.Context, rs []byte) error + func (w *Wallet) ImportXpubAccount(ctx context.Context, name string, xpub *hdkeychain.ExtendedKey) error + func (w *Wallet) ListAddressTransactions(ctx context.Context, pkHashes map[string]struct{}) ([]types.ListTransactionsResult, error) + func (w *Wallet) ListAllTransactions(ctx context.Context) ([]types.ListTransactionsResult, error) + func (w *Wallet) ListSinceBlock(ctx context.Context, start, end, syncHeight int32) ([]types.ListTransactionsResult, error) + func (w *Wallet) ListTransactionDetails(ctx context.Context, txHash *chainhash.Hash) ([]types.ListTransactionsResult, error) + func (w *Wallet) ListTransactions(ctx context.Context, from, count int) ([]types.ListTransactionsResult, error) + func (w *Wallet) ListUnspent(ctx context.Context, minconf, maxconf int32, addresses map[string]struct{}) ([]*types.ListUnspentResult, error) + func (w *Wallet) LiveTicketHashes(ctx context.Context, rpcCaller Caller, includeImmature bool) ([]chainhash.Hash, error) + func (w *Wallet) LoadActiveDataFilters(ctx context.Context, n NetworkBackend, reload bool) (err error) + func (w *Wallet) Lock() + func (w *Wallet) LockOutpoint(op wire.OutPoint) + func (w *Wallet) Locked() bool + func (w *Wallet) LockedOutpoint(op wire.OutPoint) bool + func (w *Wallet) LockedOutpoints() []dcrdtypes.TransactionInput + func (w *Wallet) MainChainTip(ctx context.Context) (hash chainhash.Hash, height int32) + func (w *Wallet) MakeSecp256k1MultiSigScript(ctx context.Context, secp256k1Addrs []dcrutil.Address, nRequired int) ([]byte, error) + func (w *Wallet) MasterPrivKey(ctx context.Context, account uint32) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) MasterPubKey(ctx context.Context, account uint32) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) MixAccount(ctx context.Context, dialTLS DialFunc, csppserver string, ...) error + func (w *Wallet) MixOutput(ctx context.Context, dialTLS DialFunc, csppserver string, ...) error + func (w *Wallet) NeedsAccountsSync(ctx context.Context) (bool, error) + func (w *Wallet) NetworkBackend() (NetworkBackend, error) + func (w *Wallet) NewChangeAddress(ctx context.Context, account uint32) (dcrutil.Address, error) + func (w *Wallet) NewExternalAddress(ctx context.Context, account uint32, callOpts ...NextAddressCallOption) (dcrutil.Address, error) + func (w *Wallet) NewInternalAddress(ctx context.Context, account uint32, callOpts ...NextAddressCallOption) (dcrutil.Address, error) + func (w *Wallet) NewUnsignedTransaction(ctx context.Context, outputs []*wire.TxOut, relayFeePerKb dcrutil.Amount, ...) (*txauthor.AuthoredTx, error) + func (w *Wallet) NextAccount(ctx context.Context, name string) (uint32, error) + func (w *Wallet) NextStakeDifficulty(ctx context.Context) (dcrutil.Amount, error) + func (w *Wallet) NextStakeDifficultyAfterHeader(ctx context.Context, h *wire.BlockHeader) (dcrutil.Amount, error) + func (w *Wallet) OutputInfo(ctx context.Context, out *wire.OutPoint) (OutputInfo, error) + func (w *Wallet) PoolAddress() dcrutil.Address + func (w *Wallet) PoolFees() float64 + func (w *Wallet) PrepareRedeemMultiSigOutTxOutput(msgTx *wire.MsgTx, p2shOutput *P2SHMultiSigOutput, pkScript *[]byte) error + func (w *Wallet) PubKeyForAddress(ctx context.Context, a dcrutil.Address) (*secp256k1.PublicKey, error) + func (w *Wallet) PublishTransaction(ctx context.Context, tx *wire.MsgTx, serializedTx []byte, n NetworkBackend) (*chainhash.Hash, error) + func (w *Wallet) PublishUnminedTransactions(ctx context.Context, p Peer) error + func (w *Wallet) PurchaseTickets(ctx context.Context, minBalance, spendLimit dcrutil.Amount, minConf int32, ...) ([]*chainhash.Hash, error) + func (w *Wallet) PurchaseTicketsContext(ctx context.Context, n NetworkBackend, req *PurchaseTicketsRequest) ([]*chainhash.Hash, error) + func (w *Wallet) PurchaseTicketsWithResponse(ctx context.Context, n NetworkBackend, req *PurchaseTicketsRequest) (*PurchaseTicketsResponse, error) + func (w *Wallet) RedeemScriptCopy(ctx context.Context, addr dcrutil.Address) ([]byte, error) + func (w *Wallet) RelayFee() dcrutil.Amount + func (w *Wallet) RenameAccount(ctx context.Context, account uint32, newName string) error + func (w *Wallet) Rescan(ctx context.Context, n NetworkBackend, startHash *chainhash.Hash) error + func (w *Wallet) RescanFromHeight(ctx context.Context, n NetworkBackend, startHeight int32) error + func (w *Wallet) RescanPoint(ctx context.Context) (*chainhash.Hash, error) + func (w *Wallet) RescanProgressFromHeight(ctx context.Context, n NetworkBackend, startHeight int32, ...) + func (w *Wallet) ResetLockedOutpoints() + func (w *Wallet) RevokeExpiredTickets(ctx context.Context, p Peer) (err error) + func (w *Wallet) RevokeOwnedTickets(ctx context.Context, missedTicketHashes []*chainhash.Hash) error + func (w *Wallet) RevokeTickets(ctx context.Context, rpcCaller Caller) error + func (w *Wallet) SaveRescanned(ctx context.Context, hash *chainhash.Hash, txs []*wire.MsgTx) error + func (w *Wallet) SelectInputs(ctx context.Context, targetAmount dcrutil.Amount, policy OutputSelectionPolicy) (inputDetail *txauthor.InputDetail, err error) + func (w *Wallet) SendOutputs(ctx context.Context, outputs []*wire.TxOut, account, changeAccount uint32, ...) (*chainhash.Hash, error) + func (w *Wallet) SendOutputsUnSign(ctx context.Context, outputs []*wire.TxOut, account, changeAccount uint32, ...) (*wire.MsgTx, error) + func (w *Wallet) SetAgendaChoices(ctx context.Context, choices ...AgendaChoice) (voteBits uint16, err error) + func (w *Wallet) SetBalanceToMaintain(balance dcrutil.Amount) + func (w *Wallet) SetNetworkBackend(n NetworkBackend) + func (w *Wallet) SetRelayFee(relayFee dcrutil.Amount) + func (w *Wallet) SetTicketFeeIncrement(fee dcrutil.Amount) + func (w *Wallet) SignMessage(ctx context.Context, msg string, addr dcrutil.Address) (sig []byte, err error) + func (w *Wallet) SignTransaction(ctx context.Context, tx *wire.MsgTx, hashType txscript.SigHashType, ...) ([]SignatureError, error) + func (w *Wallet) SortedActivePaymentAddresses(ctx context.Context) ([]string, error) + func (w *Wallet) StakeInfo(ctx context.Context) (*StakeInfoData, error) + func (w *Wallet) StakeInfoPrecise(ctx context.Context, rpcCaller Caller) (*StakeInfoData, error) + func (w *Wallet) StakePoolUserInfo(ctx context.Context, userAddress dcrutil.Address) (*udb.StakePoolUser, error) + func (w *Wallet) SyncLastReturnedAddress(ctx context.Context, account, branch, child uint32) error + func (w *Wallet) TicketAddress() dcrutil.Address + func (w *Wallet) TicketFeeIncrement() dcrutil.Amount + func (w *Wallet) TicketHashesForVotingAddress(ctx context.Context, votingAddr dcrutil.Address) ([]chainhash.Hash, error) + func (w *Wallet) TotalReceivedForAccounts(ctx context.Context, minConf int32) ([]AccountTotalReceivedResult, error) + func (w *Wallet) TotalReceivedForAddr(ctx context.Context, addr dcrutil.Address, minConf int32) (dcrutil.Amount, error) + func (w *Wallet) TransactionSummary(ctx context.Context, txHash *chainhash.Hash) (txSummary *TransactionSummary, confs int32, blockHash *chainhash.Hash, ...) + func (w *Wallet) Unlock(ctx context.Context, passphrase []byte, timeout <-chan time.Time) error + func (w *Wallet) UnlockOutpoint(op wire.OutPoint) + func (w *Wallet) UnminedTransactions(ctx context.Context) ([]*wire.MsgTx, error) + func (w *Wallet) UnspentOutputs(ctx context.Context, policy OutputSelectionPolicy) ([]*TransactionOutput, error) + func (w *Wallet) UpgradeToSLIP0044CoinType(ctx context.Context) error + func (w *Wallet) ValidateHeaderChainDifficulties(ctx context.Context, chain []*BlockNode, idx int) ([]*BlockNode, error) + func (w *Wallet) VoteBits() stake.VoteBits + func (w *Wallet) VoteOnOwnedTickets(ctx context.Context, winningTicketHashes []*chainhash.Hash, ...) error + func (w *Wallet) VotingEnabled() bool