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 AccountBalanceNtfnMethod + const DcrdConnectedNtfnMethod + const NewTicketsNtfnMethod + const NewTxNtfnMethod + const RevocationCreatedNtfnMethod + const TicketPurchasedNtfnMethod + const VoteCreatedNtfnMethod + const WalletLockStateNtfnMethod + const WinningTicketsNtfnMethod + type AbandonTransactionCmd struct + Hash string + type AccountAddressIndexCmd struct + Account string + Branch int + func NewAccountAddressIndexCmd(acct string, branch int) *AccountAddressIndexCmd + type AccountBalanceNtfn struct + Account string + Balance float64 + Confirmed bool + func NewAccountBalanceNtfn(account string, balance float64, confirmed bool) *AccountBalanceNtfn + type AccountSyncAddressIndexCmd struct + Account string + Branch int + Index int + func NewAccountSyncAddressIndexCmd(acct string, branch int, idx int) *AccountSyncAddressIndexCmd + type AddMultisigAddressCmd struct + Account *string + Keys []string + NRequired int + func NewAddMultisigAddressCmd(nRequired int, keys []string, account *string) *AddMultisigAddressCmd + type AddTicketCmd struct + TicketHex string + func NewAddTicketCmd(ticketHex string) *AddTicketCmd + type AuditReuseCmd struct + Since *int32 + type ConsolidateCmd struct + Account *string + Address *string + Inputs int + func NewConsolidateCmd(inputs int, acct *string, addr *string) *ConsolidateCmd + type CreateEncryptedWalletCmd struct + Passphrase string + func NewCreateEncryptedWalletCmd(passphrase string) *CreateEncryptedWalletCmd + type CreateMultiSigResult struct + Address string + RedeemScript string + type CreateMultisigCmd struct + Keys []string + NRequired int + func NewCreateMultisigCmd(nRequired int, keys []string) *CreateMultisigCmd + type CreateNewAccountCmd struct + Account string + func NewCreateNewAccountCmd(account string) *CreateNewAccountCmd + type CreateSignatureCmd struct + Address string + HashType int + InputIndex int + PreviousPkScript string + SerializedTransaction string + type CreateSignatureResult struct + PublicKey string + Signature string + type CreateUnsignedTicketResult struct + SplitTx string + UnsignedTickets []string + type CreateVotingAccountCmd struct + ChildIndex *uint32 + Name string + PubKey string + func NewCreateVotingAccountCmd(name, pubKey string, childIndex *uint32) *CreateVotingAccountCmd + type DcrdConnectedNtfn struct + Connected bool + func NewDcrdConnectedNtfn(connected bool) *DcrdConnectedNtfn + type DropVotingAccountCmd struct + func NewDropVotingAccountCmd() *DropVotingAccountCmd + type DumpPrivKeyCmd struct + Address string + func NewDumpPrivKeyCmd(address string) *DumpPrivKeyCmd + type EstimatePriorityCmd struct + NumBlocks int64 + func NewEstimatePriorityCmd(numBlocks int64) *EstimatePriorityCmd + type ExportWatchingWalletCmd struct + Account *string + Download *bool + func NewExportWatchingWalletCmd(account *string, download *bool) *ExportWatchingWalletCmd + type FundRawTransactionCmd struct + FundAccount string + HexString string + Options *FundRawTransactionOptions + func NewFundRawTransactionCmd(hexString string, fundAccount string, options *FundRawTransactionOptions) *FundRawTransactionCmd + type FundRawTransactionOptions struct + ChangeAddress *string + ConfTarget *int32 + FeeRate *float64 + type FundRawTransactionResult struct + Fee float64 + Hex string + type GenerateVoteCmd struct + BlockHash string + Height int64 + TicketHash string + VoteBits uint16 + VoteBitsExt string + func NewGenerateVoteCmd(blockhash string, height int64, tickethash string, votebits uint16, ...) *GenerateVoteCmd + type GenerateVoteResult struct + Hex string + type GetAccountAddressCmd struct + Account string + func NewGetAccountAddressCmd(account string) *GetAccountAddressCmd + type GetAccountBalanceResult struct + AccountName string + ImmatureCoinbaseRewards float64 + ImmatureStakeGeneration float64 + LockedByTickets float64 + Spendable float64 + Total float64 + Unconfirmed float64 + VotingAuthority float64 + type GetAccountCmd struct + Address string + func NewGetAccountCmd(address string) *GetAccountCmd + type GetAddressesByAccountCmd struct + Account string + func NewGetAddressesByAccountCmd(account string) *GetAddressesByAccountCmd + type GetBalanceCmd struct + Account *string + MinConf *int + func NewGetBalanceCmd(account *string, minConf *int) *GetBalanceCmd + type GetBalanceResult struct + Balances []GetAccountBalanceResult + BlockHash string + CumulativeTotal float64 + TotalImmatureCoinbaseRewards float64 + TotalImmatureStakeGeneration float64 + TotalLockedByTickets float64 + TotalSpendable float64 + TotalUnconfirmed float64 + TotalVotingAuthority float64 + type GetContractHashCmd struct + FilePath []string + func NewGetContractHashCmd(filepaths []string) *GetContractHashCmd + type GetContractHashResult struct + ContractHash string + type GetMasterPubkeyCmd struct + Account *string + func NewGetMasterPubkeyCmd(acct *string) *GetMasterPubkeyCmd + type GetMultisigOutInfoCmd struct + Hash string + Index uint32 + func NewGetMultisigOutInfoCmd(hash string, index uint32) *GetMultisigOutInfoCmd + type GetMultisigOutInfoResult struct + Address string + Amount float64 + BlockHash string + BlockHeight uint32 + M uint8 + N uint8 + Pubkeys []string + RedeemScript string + Spent bool + SpentBy string + SpentByIndex uint32 + TxHash string + type GetNewAddressCmd struct + Account *string + GapPolicy *string + func NewGetNewAddressCmd(account *string, gapPolicy *string) *GetNewAddressCmd + type GetPayToContractAddressCmd struct + FilePath []string + func NewGetPayToContractAddressCmd(filepaths []string) *GetPayToContractAddressCmd + type GetPayToContractHashResult struct + Address string + type GetRawChangeAddressCmd struct + Account *string + func NewGetRawChangeAddressCmd(account *string) *GetRawChangeAddressCmd + type GetReceivedByAccountCmd struct + Account string + MinConf *int + func NewGetReceivedByAccountCmd(account string, minConf *int) *GetReceivedByAccountCmd + type GetReceivedByAddressCmd struct + Address string + MinConf *int + func NewGetReceivedByAddressCmd(address string, minConf *int) *GetReceivedByAddressCmd + type GetStakeInfoCmd struct + func NewGetStakeInfoCmd() *GetStakeInfoCmd + type GetStakeInfoResult struct + AllMempoolTix uint32 + BlockHeight int64 + Difficulty float64 + Expired uint32 + Immature uint32 + Live uint32 + Missed uint32 + OwnMempoolTix uint32 + PoolSize uint32 + ProportionLive float64 + ProportionMissed float64 + Revoked uint32 + TotalSubsidy float64 + Unspent uint32 + UnspentExpired uint32 + Voted uint32 + type GetTicketFeeCmd struct + func NewGetTicketFeeCmd() *GetTicketFeeCmd + type GetTicketsCmd struct + IncludeImmature bool + func NewGetTicketsCmd(includeImmature bool) *GetTicketsCmd + type GetTicketsResult struct + Hashes []string + type GetTransactionCmd struct + IncludeWatchOnly *bool + Txid string + func NewGetTransactionCmd(txHash string, includeWatchOnly *bool) *GetTransactionCmd + type GetTransactionDetailsResult struct + Account string + Address string + Amount float64 + Category string + Fee *float64 + InvolvesWatchOnly bool + Vout uint32 + type GetTransactionResult struct + Amount float64 + BlockHash string + BlockIndex int64 + BlockTime int64 + Confirmations int64 + Details []GetTransactionDetailsResult + Fee float64 + Hex string + TicketStatus string + Time int64 + TimeReceived int64 + TxID string + Type string + WalletConflicts []string + type GetUnconfirmedBalanceCmd struct + Account *string + func NewGetUnconfirmedBalanceCmd(account *string) *GetUnconfirmedBalanceCmd + type GetVoteChoicesCmd struct + func NewGetVoteChoicesCmd() *GetVoteChoicesCmd + type GetVoteChoicesResult struct + Choices []VoteChoice + Version uint32 + type GetWalletFeeCmd struct + func NewGetWalletFeeCmd() *GetWalletFeeCmd + type ImportPrivKeyCmd struct + Label *string + PrivKey string + Rescan *bool + ScanFrom *int + func NewImportPrivKeyCmd(privKey string, label *string, rescan *bool, scanFrom *int) *ImportPrivKeyCmd + type ImportScriptCmd struct + Hex string + Rescan *bool + ScanFrom *int + func NewImportScriptCmd(hex string, rescan *bool, scanFrom *int) *ImportScriptCmd + type ImportXpubCmd struct + Name string + Xpub string + type InfoResult struct + Balance float64 + Blocks int32 + Connections int32 + Difficulty float64 + Errors string + KeypoolOldest int64 + KeypoolSize int32 + PaytxFee float64 + ProtocolVersion int32 + Proxy string + RelayFee float64 + TestNet bool + TimeOffset int64 + UnlockedUntil int64 + Version int32 + WalletVersion int32 + type InfoWalletResult = InfoResult + type KeyPoolRefillCmd struct + NewSize *uint + func NewKeyPoolRefillCmd(newSize *uint) *KeyPoolRefillCmd + type ListAccountsCmd struct + MinConf *int + func NewListAccountsCmd(minConf *int) *ListAccountsCmd + type ListAddressTransactionsCmd struct + Account *string + Addresses []string + func NewListAddressTransactionsCmd(addresses []string, account *string) *ListAddressTransactionsCmd + type ListAllTransactionsCmd struct + Account *string + func NewListAllTransactionsCmd(account *string) *ListAllTransactionsCmd + type ListLockUnspentCmd struct + func NewListLockUnspentCmd() *ListLockUnspentCmd + type ListReceivedByAccountCmd struct + IncludeEmpty *bool + IncludeWatchOnly *bool + MinConf *int + func NewListReceivedByAccountCmd(minConf *int, includeEmpty, includeWatchOnly *bool) *ListReceivedByAccountCmd + type ListReceivedByAccountResult struct + Account string + Amount float64 + Confirmations uint64 + type ListReceivedByAddressCmd struct + IncludeEmpty *bool + IncludeWatchOnly *bool + MinConf *int + func NewListReceivedByAddressCmd(minConf *int, includeEmpty, includeWatchOnly *bool) *ListReceivedByAddressCmd + type ListReceivedByAddressResult struct + Account string + Address string + Amount float64 + Confirmations uint64 + InvolvesWatchonly bool + TxIDs []string + type ListScriptsCmd struct + func NewListScriptsCmd() *ListScriptsCmd + type ListScriptsResult struct + Scripts []ScriptInfo + type ListSinceBlockCmd struct + BlockHash *string + IncludeWatchOnly *bool + TargetConfirmations *int + func NewListSinceBlockCmd(blockHash *string, targetConfirms *int, includeWatchOnly *bool) *ListSinceBlockCmd + type ListSinceBlockResult struct + LastBlock string + Transactions []ListTransactionsResult + type ListTicketsCmd struct + func NewListTicketsCmd() *ListTicketsCmd + type ListTicketsResult struct + Spender *ListTicketsTransactionSummary + Status string + Ticket *ListTicketsTransactionSummary + type ListTicketsTransactionSummary struct + Fee float64 + Hash string + MyInputs []ListTicketsTransactionSummaryInput + MyOutputs []ListTicketsTransactionSummaryOutput + Timestamp int64 + Transaction string + Type string + type ListTicketsTransactionSummaryInput struct + Index uint32 + PreviousAccount string + PreviousAmount float64 + type ListTicketsTransactionSummaryOutput struct + Account string + Address string + Amount float64 + Index uint32 + Internal bool + OutputScript string + type ListTransactionsCmd struct + Account *string + Count *int + From *int + IncludeWatchOnly *bool + func NewListTransactionsCmd(account *string, count, from *int, includeWatchOnly *bool) *ListTransactionsCmd + type ListTransactionsResult struct + Account string + Address string + Amount float64 + BlockHash string + BlockIndex *int64 + BlockTime int64 + Category string + Comment string + Confirmations int64 + Fee *float64 + Generated bool + InvolvesWatchOnly bool + OtherAccount string + Time int64 + TimeReceived int64 + TxID string + TxType *ListTransactionsTxType + Vout uint32 + WalletConflicts []string + type ListTransactionsTxType string + const LTTTRegular + const LTTTRevocation + const LTTTTicket + const LTTTVote + type ListUnspentCmd struct + Addresses *[]string + MaxConf *int + MinConf *int + func NewListUnspentCmd(minConf, maxConf *int, addresses *[]string) *ListUnspentCmd + type ListUnspentResult struct + Account string + Address string + Amount float64 + Confirmations int64 + RedeemScript string + ScriptPubKey string + Spendable bool + Tree int8 + TxID string + TxType int + Vout uint32 + type LockUnspentCmd struct + Transactions []dcrdtypes.TransactionInput + Unlock bool + func NewLockUnspentCmd(unlock bool, transactions []dcrdtypes.TransactionInput) *LockUnspentCmd + type Method string + type MixAccountCmd struct + type MixOutputCmd struct + Outpoint string + type NewTxNtfn struct + Account string + Details ListTransactionsResult + func NewNewTxNtfn(account string, details ListTransactionsResult) *NewTxNtfn + type PoolUserTicket struct + SpentBy string + SpentByHeight uint32 + Status string + Ticket string + TicketHeight uint32 + type PurchaseTicketCmd struct + Comment *string + DontSignTx *bool + Expiry *int + FromAccount string + MinConf *int + NumTickets *int + PoolAddress *string + PoolFees *float64 + SpendLimit float64 + TicketAddress *string + TicketFee *float64 + func NewPurchaseTicketCmd(fromAccount string, spendLimit float64, minConf *int, ticketAddress *string, ...) *PurchaseTicketCmd + type RawTxInput struct + RedeemScript string + ScriptPubKey string + Tree int8 + Txid string + Vout uint32 + type RecoverAddressesCmd struct + Account string + N int + func NewRecoverAddressesCmd(account string, n int) *RecoverAddressesCmd + type RedeemMultiSigOutCmd struct + Address *string + Hash string + Index uint32 + Tree int8 + func NewRedeemMultiSigOutCmd(hash string, index uint32, tree int8, address *string) *RedeemMultiSigOutCmd + type RedeemMultiSigOutResult struct + Complete bool + Errors []SignRawTransactionError + Hex string + type RedeemMultiSigOutsCmd struct + FromScrAddress string + Number *int + ToAddress *string + func NewRedeemMultiSigOutsCmd(from string, to *string, number *int) *RedeemMultiSigOutsCmd + type RedeemMultiSigOutsResult struct + Results []RedeemMultiSigOutResult + type RenameAccountCmd struct + NewAccount string + OldAccount string + func NewRenameAccountCmd(oldAccount, newAccount string) *RenameAccountCmd + type RescanWalletCmd struct + BeginHeight *int + type RevocationCreatedNtfn struct + SStxIn string + TxHash string + func NewRevocationCreatedNtfn(txHash string, sstxIn string) *RevocationCreatedNtfn + type RevokeTicketsCmd struct + func NewRevokeTicketsCmd() *RevokeTicketsCmd + type ScriptInfo struct + Address string + Hash160 string + RedeemScript string + type SendFromCmd struct + Amount float64 + Comment *string + CommentTo *string + FromAccount string + MinConf *int + ToAddress string + func NewSendFromCmd(fromAccount, toAddress string, amount float64, minConf *int, ...) *SendFromCmd + type SendManyCmd struct + Amounts map[string]float64 + Comment *string + FromAccount string + MinConf *int + func NewSendManyCmd(fromAccount string, amounts map[string]float64, minConf *int, comment *string) *SendManyCmd + type SendToAddressCmd struct + Address string + Amount float64 + Comment *string + CommentTo *string + func NewSendToAddressCmd(address string, amount float64, comment, commentTo *string) *SendToAddressCmd + type SendToMultiSigCmd struct + Amount float64 + Comment *string + FromAccount string + MinConf *int + NRequired *int + Pubkeys []string + func NewSendToMultiSigCmd(fromaccount string, amount float64, pubkeys []string, nrequired *int, ...) *SendToMultiSigCmd + type SendToMultiSigResult struct + Address string + RedeemScript string + TxHash string + type SetTicketFeeCmd struct + Fee float64 + func NewSetTicketFeeCmd(fee float64) *SetTicketFeeCmd + type SetTxFeeCmd struct + Amount float64 + func NewSetTxFeeCmd(amount float64) *SetTxFeeCmd + type SetVoteChoiceCmd struct + AgendaID string + ChoiceID string + func NewSetVoteChoiceCmd(agendaID, choiceID string) *SetVoteChoiceCmd + type SignMessageCmd struct + Address string + Message string + func NewSignMessageCmd(address, message string) *SignMessageCmd + type SignRawTransactionCmd struct + Flags *string + Inputs *[]RawTxInput + PrivKeys *[]string + RawTx string + func NewSignRawTransactionCmd(hexEncodedTx string, inputs *[]RawTxInput, privKeys *[]string, flags *string) *SignRawTransactionCmd + type SignRawTransactionError struct + Error string + ScriptSig string + Sequence uint32 + TxID string + Vout uint32 + type SignRawTransactionResult struct + Complete bool + Errors []SignRawTransactionError + Hex string + type SignRawTransactionsCmd struct + RawTxs []string + Send *bool + func NewSignRawTransactionsCmd(hexEncodedTxs []string, send *bool) *SignRawTransactionsCmd + type SignRawTransactionsResult struct + Results []SignedTransaction + type SignedTransaction struct + Sent bool + SigningResult SignRawTransactionResult + TxHash *string + type StakePoolUserInfoCmd struct + User string + func NewStakePoolUserInfoCmd(user string) *StakePoolUserInfoCmd + type StakePoolUserInfoResult struct + InvalidTickets []string + Tickets []PoolUserTicket + type StartAutoBuyerCmd struct + Account string + BalanceToMaintain *int64 + MaxFeePerKb *int64 + MaxPerBlock *int64 + MaxPriceAbsolute *int64 + MaxPriceRelative *float64 + Passphrase string + PoolAddress *string + PoolFees *float64 + VotingAddress *string + func NewStartAutoBuyerCmd(account string, passphrase string, balanceToMaintain *int64, ...) *StartAutoBuyerCmd + type StopAutoBuyerCmd struct + func NewStopAutoBuyerCmd() *StopAutoBuyerCmd + type SweepAccountCmd struct + DestinationAddress string + FeePerKb *float64 + RequiredConfirmations *uint32 + SourceAccount string + func NewSweepAccountCmd(sourceAccount string, destinationAddress string, requiredConfs *uint32, ...) *SweepAccountCmd + type SweepAccountResult struct + EstimatedSignedSize uint32 + TotalOutputAmount float64 + TotalPreviousOutputAmount float64 + UnsignedTransaction string + type TicketPurchasedNtfn struct + Amount int64 + TxHash string + func NewTicketPurchasedNtfn(txHash string, amount int64) *TicketPurchasedNtfn + type ValidateAddressResult struct + Account string + Address string + Addresses []string + Hex string + IsCompressed bool + IsMine bool + IsScript bool + IsValid bool + IsWatchOnly bool + PubKey string + PubKeyAddr string + Script string + SigsRequired int32 + type ValidateAddressWalletResult = ValidateAddressResult + type VerifySeedCmd struct + Account *uint32 + Seed string + func NewVerifySeedCmd(seed string, account *uint32) *VerifySeedCmd + type VerifySeedResult struct + CoinType uint32 + Result bool + type VoteChoice struct + AgendaDescription string + AgendaID string + ChoiceDescription string + ChoiceID string + type VoteCreatedNtfn struct + BlockHash string + Height int32 + SStxIn string + TxHash string + VoteBits uint16 + func NewVoteCreatedNtfn(txHash string, blockHash string, height int32, sstxIn string, voteBits uint16) *VoteCreatedNtfn + type WalletInfoCmd struct + func NewWalletInfoCmd() *WalletInfoCmd + type WalletInfoResult struct + CoinType uint32 + DaemonConnected bool + TicketFee float64 + TicketPurchasing bool + TxFee float64 + Unlocked bool + VoteBits uint16 + VoteBitsExtended string + VoteVersion uint32 + Voting bool + type WalletIsLockedCmd struct + func NewWalletIsLockedCmd() *WalletIsLockedCmd + type WalletLockCmd struct + func NewWalletLockCmd() *WalletLockCmd + type WalletLockStateNtfn struct + Locked bool + func NewWalletLockStateNtfn(locked bool) *WalletLockStateNtfn + type WalletPassphraseChangeCmd struct + NewPassphrase string + OldPassphrase string + func NewWalletPassphraseChangeCmd(oldPassphrase, newPassphrase string) *WalletPassphraseChangeCmd + type WalletPassphraseCmd struct + Passphrase string + Timeout int64 + func NewWalletPassphraseCmd(passphrase string, timeout int64) *WalletPassphraseCmd