Versions in this module Expand all Collapse all v3 v3.1.0 Sep 27, 2023 v3.0.1 Jun 12, 2023 v3.0.0 Jun 9, 2023 Changes in this version + const DefaultAccountGapLimit + const DefaultGapLimit + const InsecurePubPassphrase + const OutputSelectionAlgorithmAll + const OutputSelectionAlgorithmDefault + var SimulationPassphrase = []byte("password") + func BadCheckpoint(network wire.CurrencyNet, hash *chainhash.Hash, height int32) bool + func CheckpointHash(network wire.CurrencyNet, height int32) *chainhash.Hash + 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 PossibleCoinJoin(tx *wire.MsgTx) (isMix bool, mixDenom int64, mixCount uint32) + func UnstableAPI(w *Wallet) unstableAPI + func UseLogger(logger slog.Logger) + func VerifyMessage(msg string, addr stdaddr.Address, sig []byte, params stdaddr.AddressParams) (bool, error) + type AccountBalance struct + Account uint32 + TotalBalance dcrutil.Amount + type AccountKind int + const AccountKindBIP0044 + const AccountKindImported + const AccountKindImportedXpub + type AccountNotification struct + AccountName string + AccountNumber uint32 + ExternalKeyCount uint32 + ImportedKeyCount uint32 + InternalKeyCount uint32 + type AccountNotificationsClient struct + C chan *AccountNotification + func (c *AccountNotificationsClient) Done() + type AccountProperties struct + AccountEncrypted bool + AccountName string + AccountNumber uint32 + AccountType uint8 + AccountUnlocked bool + ImportedKeyCount uint32 + LastReturnedExternalIndex uint32 + LastReturnedInternalIndex uint32 + LastUsedExternalIndex uint32 + LastUsedInternalIndex uint32 + 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 Address interface + PaymentScript func() (version uint16, script []byte) + ScriptLen func() int + String func() string + type AgendaChoice struct + AgendaID string + ChoiceID string + type AgendaChoices []AgendaChoice + func (a AgendaChoices) Map() map[string]string + type BIP0044Address interface + Path func() (account, branch, child uint32) + type Balances struct + Account uint32 + ImmatureCoinbaseRewards dcrutil.Amount + ImmatureStakeGeneration dcrutil.Amount + LockedByTickets dcrutil.Amount + Spendable dcrutil.Amount + Total dcrutil.Amount + Unconfirmed dcrutil.Amount + VotingAuthority dcrutil.Amount + 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 + FilterV2 *gcs.FilterV2 + Hash *chainhash.Hash + Header *wire.BlockHeader + func NewBlockNode(header *wire.BlockHeader, hash *chainhash.Hash, filter *gcs.FilterV2) *BlockNode + func (n *BlockNode) BadCheckpoint() + 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 uint32 + ManualTickets bool + MixSplitLimit int + Params *chaincfg.Params + PoolAddress stdaddr.StakeAddress + PoolFees float64 + PubPassphrase []byte + RelayFee dcrutil.Amount + StakePoolColdExtKey string + VotingAddress stdaddr.StakeAddress + VotingEnabled bool + WatchLast uint32 + 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 stdaddr.Address + ChangeIndex int + Fee dcrutil.Amount + MsgTx *wire.MsgTx + type CreditCategory byte + const CreditGenerate + const CreditImmature + const CreditReceive + 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 FilterProof = struct + Filter *gcs.FilterV2 + Proof []chainhash.Hash + ProofIndex uint32 + type Input struct + OutPoint wire.OutPoint + PrevOut wire.TxOut + type KnownAddress interface + AccountKind func() AccountKind + AccountName func() string + 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 []stdaddr.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) RemovedTransactionNotifications() RemovedTransactionNotificationsClient + 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 P2SHAddress interface + RedeemScript func() (version uint16, script []byte) + type P2SHMultiSigOutput struct + ContainingBlock BlockIdentity + M uint8 + N uint8 + OutPoint wire.OutPoint + OutputAmount dcrutil.Amount + P2SHAddress *stdaddr.AddressScriptHashV0 + RedeemScript []byte + Redeemer *OutputRedeemer + type Peer interface + Blocks func(ctx context.Context, blockHashes []*chainhash.Hash) ([]*wire.MsgBlock, error) + CFiltersV2 func(ctx context.Context, blockHashes []*chainhash.Hash) ([]FilterProof, 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 PubKeyHashAddress interface + PubKey func() []byte + PubKeyHash func() []byte + 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 + UseVotingAccount bool + VSPAddress stdaddr.StakeAddress + VSPFeePaymentProcess func(context.Context, *chainhash.Hash, *wire.MsgTx) error + VSPFeeProcess func(context.Context) (float64, error) + VSPFees float64 + VotingAccount uint32 + VotingAddress stdaddr.StakeAddress + type PurchaseTicketsResponse struct + SplitTx *wire.MsgTx + TicketHashes []*chainhash.Hash + Tickets []*wire.MsgTx + type RemovedTransactionNotification struct + TxHash chainhash.Hash + type RemovedTransactionNotificationsClient struct + C chan *RemovedTransactionNotification + func (c *RemovedTransactionNotificationsClient) Done() + type RescanFilter struct + func NewRescanFilter(addresses []stdaddr.Address, unspentOutPoints []*wire.OutPoint) *RescanFilter + func (f *RescanFilter) AddAddress(a stdaddr.Address) + func (f *RescanFilter) AddUnspentOutPoint(op *wire.OutPoint) + func (f *RescanFilter) ExistsAddress(a stdaddr.Address) (ok bool) + func (f *RescanFilter) ExistsUnspentOutPoint(op *wire.OutPoint) bool + func (f *RescanFilter) RemoveAddress(a stdaddr.Address) + func (f *RescanFilter) RemoveUnspentOutPoint(op *wire.OutPoint) + type RescanProgress struct + Err error + ScannedThrough int32 + type SidechainForest struct + func (f *SidechainForest) AddBlockNode(n *BlockNode) bool + func (f *SidechainForest) FullSideChain(newBlocks []*BlockNode) ([]*BlockNode, error) + func (f *SidechainForest) HasSideChainBlock(blockHash *chainhash.Hash) 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 uint + const TicketStatusExpired + const TicketStatusImmature + const TicketStatusLive + const TicketStatusMissed + const TicketStatusRevoked + const TicketStatusUnknown + const TicketStatusUnmined + const TicketStatusUnspent + const TicketStatusVoted + func (i TicketStatus) String() string + type TicketSummary struct + Spender *TransactionSummary + Status TicketStatus + Ticket *TransactionSummary + type TransactionNotifications struct + AttachedBlocks []Block + DetachedBlocks []*wire.BlockHeader + 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 stdaddr.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 TreasuryKeyPolicy struct + PiKey []byte + Policy stake.TreasuryVoteT + Ticket *chainhash.Hash + type VSPTicket struct + FeeHash chainhash.Hash + FeeTxStatus uint32 + Host string + PubKey []byte + VSPHostID uint32 + type Wallet struct + NtfnServer *NotificationServer + func Open(ctx context.Context, cfg *Config) (*Wallet, error) + func (w *Wallet) AbandonTransaction(ctx context.Context, hash *chainhash.Hash) error + func (w *Wallet) AccountBalance(ctx context.Context, account uint32, confirms int32) (Balances, error) + func (w *Wallet) AccountBalances(ctx context.Context, confirms int32) ([]Balances, error) + func (w *Wallet) AccountHasPassphrase(ctx context.Context, account uint32) (bool, 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) AccountUnlocked(ctx context.Context, account uint32) (bool, error) + func (w *Wallet) AccountXpriv(ctx context.Context, account uint32) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) AccountXpub(ctx context.Context, account uint32) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) Accounts(ctx context.Context) (*AccountsResult, error) + func (w *Wallet) AddTSpend(tx wire.MsgTx) error + func (w *Wallet) AddTransaction(ctx context.Context, tx *wire.MsgTx, blockHash *chainhash.Hash) error + func (w *Wallet) AddressAtIdx(ctx context.Context, account, branch, childIdx uint32) (stdaddr.Address, error) + func (w *Wallet) AgendaChoices(ctx context.Context, ticketHash *chainhash.Hash) (choices AgendaChoices, voteBits uint16, err error) + func (w *Wallet) AllowsHighFees() bool + func (w *Wallet) BIP0044BranchNextIndexes(ctx context.Context, account uint32) (extChild, intChild uint32, err error) + 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) CFilterV2(ctx context.Context, blockHash *chainhash.Hash) ([gcs2.KeySize]byte, *gcs2.FilterV2, 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, []stdaddr.Address, error) + func (w *Wallet) Consolidate(ctx context.Context, inputs int, account uint32, address stdaddr.Address) (*chainhash.Hash, error) + func (w *Wallet) CreateMultisigTx(ctx context.Context, account uint32, amount dcrutil.Amount, pubkeys [][]byte, ...) (*CreatedTx, stdaddr.Address, []byte, error) + func (w *Wallet) CreateSignature(ctx context.Context, tx *wire.MsgTx, idx uint32, addr stdaddr.Address, ...) (sig, pubkey []byte, err error) + func (w *Wallet) CurrentAddress(account uint32) (stdaddr.Address, error) + func (w *Wallet) DetermineRelevantTxs(ctx context.Context, txs ...*wire.MsgTx) ([]*wire.MsgTx, []*wire.MsgTx, error) + func (w *Wallet) DisapprovePercent() uint32 + func (w *Wallet) DiscoverActiveAddresses(ctx context.Context, p Peer, startBlock *chainhash.Hash, discoverAccts bool, ...) error + func (w *Wallet) DumpWIFPrivateKey(ctx context.Context, addr stdaddr.Address) (string, error) + func (w *Wallet) EvaluateBestChain(ctx context.Context, f *SidechainForest) ([]*BlockNode, error) + 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) ForUnspentUnexpiredTickets(ctx context.Context, f func(hash *chainhash.Hash) error) error + func (w *Wallet) GapLimit() uint32 + func (w *Wallet) GetAllTSpends(ctx context.Context) []*wire.MsgTx + func (w *Wallet) GetCoinjoinTxsSumbByAcct(ctx context.Context) (map[uint32]int, 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) GetVSPTicketsByFeeStatus(ctx context.Context, feeStatus int) ([]chainhash.Hash, error) + func (w *Wallet) HaveAddress(ctx context.Context, a stdaddr.Address) (bool, error) + func (w *Wallet) ImportCFiltersV2(ctx context.Context, startBlockHeight int32, filterData [][]byte) error + func (w *Wallet) ImportPrivateKey(ctx context.Context, wif *dcrutil.WIF) (string, error) + func (w *Wallet) ImportPublicKey(ctx context.Context, pubkey []byte) (string, error) + func (w *Wallet) ImportScript(ctx context.Context, rs []byte) error + func (w *Wallet) ImportVotingAccount(ctx context.Context, xpriv *hdkeychain.ExtendedKey, passphrase []byte, ...) (uint32, error) + func (w *Wallet) ImportXpubAccount(ctx context.Context, name string, xpub *hdkeychain.ExtendedKey) error + func (w *Wallet) ImportedAddresses(ctx context.Context, account string) (_ []KnownAddress, err error) + func (w *Wallet) InitialHeight() int32 + func (w *Wallet) IsTSpendCached(hash *chainhash.Hash) bool + func (w *Wallet) IsVSPTicketConfirmed(ctx context.Context, ticketHash *chainhash.Hash) (bool, error) + func (w *Wallet) KnownAddress(ctx context.Context, a stdaddr.Address) (KnownAddress, 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) LoadPrivateKey(ctx context.Context, addr stdaddr.Address) (key *secp256k1.PrivateKey, zero func(), err error) + func (w *Wallet) Lock() + func (w *Wallet) LockAccount(ctx context.Context, account uint32) error + func (w *Wallet) LockOutpoint(txHash *chainhash.Hash, index uint32) + func (w *Wallet) Locked() bool + func (w *Wallet) LockedOutpoint(txHash *chainhash.Hash, index uint32) bool + func (w *Wallet) LockedOutpoints(ctx context.Context, accountName string) ([]dcrdtypes.TransactionInput, error) + func (w *Wallet) MainChainTip(ctx context.Context) (hash chainhash.Hash, height int32) + func (w *Wallet) ManualTickets() bool + 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) (stdaddr.Address, error) + func (w *Wallet) NewExternalAddress(ctx context.Context, account uint32, callOpts ...NextAddressCallOption) (stdaddr.Address, error) + func (w *Wallet) NewInternalAddress(ctx context.Context, account uint32, callOpts ...NextAddressCallOption) (stdaddr.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) PrepareRedeemMultiSigOutTxOutput(msgTx *wire.MsgTx, p2shOutput *P2SHMultiSigOutput, pkScript *[]byte) error + func (w *Wallet) PublishTransaction(ctx context.Context, tx *wire.MsgTx, n NetworkBackend) (*chainhash.Hash, error) + func (w *Wallet) PublishUnminedTransactions(ctx context.Context, p Peer) error + func (w *Wallet) PurchaseTickets(ctx context.Context, n NetworkBackend, req *PurchaseTicketsRequest) (*PurchaseTicketsResponse, error) + func (w *Wallet) RangeCFiltersV2(ctx context.Context, startBlock, endBlock *BlockIdentifier, ...) 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) ReserveOutputsForAmount(ctx context.Context, account uint32, amount dcrutil.Amount, minconf int32) ([]Input, error) + func (w *Wallet) ResetLockedOutpoints() + func (w *Wallet) RevokeOwnedTickets(ctx context.Context, missedTicketHashes []*chainhash.Hash) 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) SendOutputsToTreasury(ctx context.Context, outputs []*wire.TxOut, account, changeAccount uint32, ...) (*chainhash.Hash, error) + func (w *Wallet) SetAccountPassphrase(ctx context.Context, account uint32, passphrase []byte) error + func (w *Wallet) SetAgendaChoices(ctx context.Context, ticketHash *chainhash.Hash, choices ...AgendaChoice) (voteBits uint16, err error) + func (w *Wallet) SetDisapprovePercent(percent uint32) + func (w *Wallet) SetNetworkBackend(n NetworkBackend) + func (w *Wallet) SetPublished(ctx context.Context, hash *chainhash.Hash, published bool) error + func (w *Wallet) SetRelayFee(relayFee dcrutil.Amount) + func (w *Wallet) SetTSpendPolicy(ctx context.Context, tspendHash *chainhash.Hash, policy stake.TreasuryVoteT, ...) error + func (w *Wallet) SetTreasuryKeyPolicy(ctx context.Context, pikey []byte, policy stake.TreasuryVoteT, ...) error + func (w *Wallet) SignHashes(ctx context.Context, hashes [][]byte, addr stdaddr.Address) ([][]byte, []byte, error) + func (w *Wallet) SignMessage(ctx context.Context, msg string, addr stdaddr.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) Spender(ctx context.Context, out *wire.OutPoint) (*wire.MsgTx, uint32, 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 stdaddr.StakeAddress) (*udb.StakePoolUser, error) + func (w *Wallet) SyncLastReturnedAddress(ctx context.Context, account, branch, child uint32) error + func (w *Wallet) TSpendPolicy(tspendHash, ticketHash *chainhash.Hash) stake.TreasuryVoteT + func (w *Wallet) TSpendPolicyForTicket(ticketHash *chainhash.Hash) map[string]string + func (w *Wallet) TicketHashesForVotingAddress(ctx context.Context, votingAddr stdaddr.Address) ([]chainhash.Hash, error) + func (w *Wallet) TotalReceivedForAccounts(ctx context.Context, minConf int32) ([]AccountTotalReceivedResult, error) + func (w *Wallet) TotalReceivedForAddr(ctx context.Context, addr stdaddr.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) TreasuryKeyPolicies() []TreasuryKeyPolicy + func (w *Wallet) TreasuryKeyPolicy(pikey []byte, ticket *chainhash.Hash) stake.TreasuryVoteT + func (w *Wallet) TreasuryKeyPolicyForTicket(ticketHash *chainhash.Hash) map[string]string + func (w *Wallet) TxBlock(ctx context.Context, hash *chainhash.Hash) (chainhash.Hash, int32, error) + func (w *Wallet) TxConfirms(ctx context.Context, hash *chainhash.Hash) (int32, error) + func (w *Wallet) Unlock(ctx context.Context, passphrase []byte, timeout <-chan time.Time) error + func (w *Wallet) UnlockAccount(ctx context.Context, account uint32, passphrase []byte) error + func (w *Wallet) UnlockOutpoint(txHash *chainhash.Hash, index uint32) + func (w *Wallet) Unlocked() bool + func (w *Wallet) UnminedTransactions(ctx context.Context) ([]*wire.MsgTx, error) + func (w *Wallet) UnspentOutput(ctx context.Context, op wire.OutPoint, includeMempool bool) (*udb.Credit, error) + func (w *Wallet) UnspentOutputs(ctx context.Context, policy OutputSelectionPolicy) ([]*TransactionOutput, error) + func (w *Wallet) UpdateVspTicketFeeToConfirmed(ctx context.Context, ticketHash, feeHash *chainhash.Hash, host string, ...) error + func (w *Wallet) UpdateVspTicketFeeToErrored(ctx context.Context, ticketHash *chainhash.Hash, host string, pubkey []byte) error + func (w *Wallet) UpdateVspTicketFeeToPaid(ctx context.Context, ticketHash, feeHash *chainhash.Hash, host string, ...) error + func (w *Wallet) UpdateVspTicketFeeToStarted(ctx context.Context, ticketHash, feeHash *chainhash.Hash, host string, ...) error + func (w *Wallet) UpgradeToSLIP0044CoinType(ctx context.Context) error + func (w *Wallet) VSPFeeHashForTicket(ctx context.Context, ticketHash *chainhash.Hash) (chainhash.Hash, error) + func (w *Wallet) VSPHostForTicket(ctx context.Context, ticketHash *chainhash.Hash) (string, error) + func (w *Wallet) VSPTicketInfo(ctx context.Context, ticketHash *chainhash.Hash) (*VSPTicket, error) + func (w *Wallet) ValidateHeaderChainDifficulties(ctx context.Context, chain []*BlockNode, idx int) ([]*BlockNode, error) + func (w *Wallet) ValidatePreDCP0005CFilters(ctx context.Context) error + func (w *Wallet) VoteBits() stake.VoteBits + func (w *Wallet) VoteOnOwnedTickets(ctx context.Context, winningTicketHashes []*chainhash.Hash, ...) error + func (w *Wallet) VotingEnabled() bool + func (w *Wallet) VotingXprivFromSeed(seed []byte) (*hdkeychain.ExtendedKey, error) + func (w *Wallet) WatchingOnly() bool Other modules containing this package decred.org/dcrwallet decred.org/dcrwallet/v2 decred.org/dcrwallet/v4