Versions in this module Expand all Collapse all v7 deprecated v7.0.1 Jun 10, 2023 v7.0.0 Dec 17, 2021 Changes in this version + var ErrClientAlreadyConnected = errors.New(...) + var ErrClientDisconnect = errors.New("the client has been disconnected") + var ErrClientNotConnected = errors.New("the client was never connected") + var ErrClientShutdown = errors.New("the client has been shutdown") + var ErrInvalidAuth = errors.New("authentication failure") + var ErrInvalidEndpoint = errors.New(...) + var ErrNotWebsocketClient = errors.New(...) + var ErrRequestCanceled = errors.New("request was canceled by the caller") + var ErrWebsocketsRequired = errors.New(...) + func UseLogger(logger slog.Logger) + type AddNodeCommand string + const ANAdd + const ANOneTry + const ANRemove + func (cmd AddNodeCommand) String() string + type CFilterV2Result struct + BlockHash chainhash.Hash + Filter *gcs.FilterV2 + ProofHashes []chainhash.Hash + ProofIndex uint32 + type Client struct + func New(config *ConnConfig, ntfnHandlers *NotificationHandlers) (*Client, error) + func (c *Client) AddNode(ctx context.Context, host string, command AddNodeCommand) error + func (c *Client) AddNodeAsync(ctx context.Context, host string, command AddNodeCommand) *FutureAddNodeResult + func (c *Client) Connect(ctx context.Context, retry bool) error + func (c *Client) CreateRawSSRtx(ctx context.Context, inputs []chainjson.TransactionInput, fee dcrutil.Amount) (*wire.MsgTx, error) + func (c *Client) CreateRawSSRtxAsync(ctx context.Context, inputs []chainjson.TransactionInput, fee dcrutil.Amount) *FutureCreateRawSSRtxResult + func (c *Client) CreateRawSStx(ctx context.Context, inputs []chainjson.SStxInput, ...) (*wire.MsgTx, error) + func (c *Client) CreateRawSStxAsync(ctx context.Context, inputs []chainjson.SStxInput, ...) *FutureCreateRawSStxResult + func (c *Client) CreateRawTransaction(ctx context.Context, inputs []chainjson.TransactionInput, ...) (*wire.MsgTx, error) + func (c *Client) CreateRawTransactionAsync(ctx context.Context, inputs []chainjson.TransactionInput, ...) *FutureCreateRawTransactionResult + func (c *Client) DebugLevel(ctx context.Context, levelSpec string) (string, error) + func (c *Client) DebugLevelAsync(ctx context.Context, levelSpec string) *FutureDebugLevelResult + func (c *Client) DecodeRawTransaction(ctx context.Context, serializedTx []byte) (*chainjson.TxRawResult, error) + func (c *Client) DecodeRawTransactionAsync(ctx context.Context, serializedTx []byte) *FutureDecodeRawTransactionResult + func (c *Client) Disconnect() + func (c *Client) Disconnected() bool + func (c *Client) EstimateSmartFee(ctx context.Context, confirmations int64, mode chainjson.EstimateSmartFeeMode) (*chainjson.EstimateSmartFeeResult, error) + func (c *Client) EstimateSmartFeeAsync(ctx context.Context, confirmations int64, mode chainjson.EstimateSmartFeeMode) *FutureEstimateSmartFeeResult + func (c *Client) EstimateStakeDiff(ctx context.Context, tickets *uint32) (*chainjson.EstimateStakeDiffResult, error) + func (c *Client) EstimateStakeDiffAsync(ctx context.Context, tickets *uint32) *FutureEstimateStakeDiffResult + func (c *Client) ExistsAddress(ctx context.Context, address stdaddr.Address) (bool, error) + func (c *Client) ExistsAddressAsync(ctx context.Context, address stdaddr.Address) *FutureExistsAddressResult + func (c *Client) ExistsAddresses(ctx context.Context, addresses []stdaddr.Address) (string, error) + func (c *Client) ExistsAddressesAsync(ctx context.Context, addresses []stdaddr.Address) *FutureExistsAddressesResult + func (c *Client) ExistsExpiredTickets(ctx context.Context, hashes []*chainhash.Hash) (string, error) + func (c *Client) ExistsExpiredTicketsAsync(ctx context.Context, hashes []*chainhash.Hash) *FutureExistsExpiredTicketsResult + func (c *Client) ExistsLiveTicket(ctx context.Context, hash *chainhash.Hash) (bool, error) + func (c *Client) ExistsLiveTicketAsync(ctx context.Context, hash *chainhash.Hash) *FutureExistsLiveTicketResult + func (c *Client) ExistsLiveTickets(ctx context.Context, hashes []*chainhash.Hash) (string, error) + func (c *Client) ExistsLiveTicketsAsync(ctx context.Context, hashes []*chainhash.Hash) *FutureExistsLiveTicketsResult + func (c *Client) ExistsMempoolTxs(ctx context.Context, hashes []*chainhash.Hash) (string, error) + func (c *Client) ExistsMempoolTxsAsync(ctx context.Context, hashes []*chainhash.Hash) *FutureExistsMempoolTxsResult + func (c *Client) ExistsMissedTickets(ctx context.Context, hashes []*chainhash.Hash) (string, error) + func (c *Client) ExistsMissedTicketsAsync(ctx context.Context, hashes []*chainhash.Hash) *FutureExistsMissedTicketsResult + func (c *Client) Generate(ctx context.Context, numBlocks uint32) ([]*chainhash.Hash, error) + func (c *Client) GenerateAsync(ctx context.Context, numBlocks uint32) *FutureGenerateResult + func (c *Client) GetAddedNodeInfo(ctx context.Context, peer string) ([]chainjson.GetAddedNodeInfoResult, error) + func (c *Client) GetAddedNodeInfoAsync(ctx context.Context, peer string) *FutureGetAddedNodeInfoResult + func (c *Client) GetAddedNodeInfoNoDNS(ctx context.Context, peer string) ([]string, error) + func (c *Client) GetAddedNodeInfoNoDNSAsync(ctx context.Context, peer string) *FutureGetAddedNodeInfoNoDNSResult + func (c *Client) GetBestBlock(ctx context.Context) (*chainhash.Hash, int64, error) + func (c *Client) GetBestBlockAsync(ctx context.Context) *FutureGetBestBlockResult + func (c *Client) GetBestBlockHash(ctx context.Context) (*chainhash.Hash, error) + func (c *Client) GetBestBlockHashAsync(ctx context.Context) *FutureGetBestBlockHashResult + func (c *Client) GetBlock(ctx context.Context, blockHash *chainhash.Hash) (*wire.MsgBlock, error) + func (c *Client) GetBlockAsync(ctx context.Context, blockHash *chainhash.Hash) *FutureGetBlockResult + func (c *Client) GetBlockChainInfo(ctx context.Context) (*chainjson.GetBlockChainInfoResult, error) + func (c *Client) GetBlockChainInfoAsync(ctx context.Context) *FutureGetBlockChainInfoResult + func (c *Client) GetBlockCount(ctx context.Context) (int64, error) + func (c *Client) GetBlockCountAsync(ctx context.Context) *FutureGetBlockCountResult + func (c *Client) GetBlockHash(ctx context.Context, blockHeight int64) (*chainhash.Hash, error) + func (c *Client) GetBlockHashAsync(ctx context.Context, blockHeight int64) *FutureGetBlockHashResult + func (c *Client) GetBlockHeader(ctx context.Context, hash *chainhash.Hash) (*wire.BlockHeader, error) + func (c *Client) GetBlockHeaderAsync(ctx context.Context, hash *chainhash.Hash) *FutureGetBlockHeaderResult + func (c *Client) GetBlockHeaderVerbose(ctx context.Context, hash *chainhash.Hash) (*chainjson.GetBlockHeaderVerboseResult, error) + func (c *Client) GetBlockHeaderVerboseAsync(ctx context.Context, hash *chainhash.Hash) *FutureGetBlockHeaderVerboseResult + func (c *Client) GetBlockSubsidy(ctx context.Context, height int64, voters uint16) (*chainjson.GetBlockSubsidyResult, error) + func (c *Client) GetBlockSubsidyAsync(ctx context.Context, height int64, voters uint16) *FutureGetBlockSubsidyResult + func (c *Client) GetBlockVerbose(ctx context.Context, blockHash *chainhash.Hash, verboseTx bool) (*chainjson.GetBlockVerboseResult, error) + func (c *Client) GetBlockVerboseAsync(ctx context.Context, blockHash *chainhash.Hash, verboseTx bool) *FutureGetBlockVerboseResult + func (c *Client) GetCFilterV2(ctx context.Context, blockHash *chainhash.Hash) (*CFilterV2Result, error) + func (c *Client) GetCFilterV2Async(ctx context.Context, blockHash *chainhash.Hash) *FutureGetCFilterV2Result + func (c *Client) GetChainTips(ctx context.Context) ([]chainjson.GetChainTipsResult, error) + func (c *Client) GetChainTipsAsync(ctx context.Context) *FutureGetChainTipsResult + func (c *Client) GetCoinSupply(ctx context.Context) (dcrutil.Amount, error) + func (c *Client) GetCoinSupplyAsync(ctx context.Context) *FutureGetCoinSupplyResult + func (c *Client) GetConnectionCount(ctx context.Context) (int64, error) + func (c *Client) GetConnectionCountAsync(ctx context.Context) *FutureGetConnectionCountResult + func (c *Client) GetCurrentNet(ctx context.Context) (wire.CurrencyNet, error) + func (c *Client) GetCurrentNetAsync(ctx context.Context) *FutureGetCurrentNetResult + func (c *Client) GetDifficulty(ctx context.Context) (float64, error) + func (c *Client) GetDifficultyAsync(ctx context.Context) *FutureGetDifficultyResult + func (c *Client) GetGenerate(ctx context.Context) (bool, error) + func (c *Client) GetGenerateAsync(ctx context.Context) *FutureGetGenerateResult + func (c *Client) GetHashesPerSec(ctx context.Context) (int64, error) + func (c *Client) GetHashesPerSecAsync(ctx context.Context) *FutureGetHashesPerSecResult + func (c *Client) GetHeaders(ctx context.Context, blockLocators []*chainhash.Hash, hashStop *chainhash.Hash) (*chainjson.GetHeadersResult, error) + func (c *Client) GetHeadersAsync(ctx context.Context, blockLocators []*chainhash.Hash, hashStop *chainhash.Hash) *FutureGetHeadersResult + func (c *Client) GetInfo(ctx context.Context) (*chainjson.InfoChainResult, error) + func (c *Client) GetInfoAsync(ctx context.Context) *FutureGetInfoResult + func (c *Client) GetMiningInfo(ctx context.Context) (*chainjson.GetMiningInfoResult, error) + func (c *Client) GetMiningInfoAsync(ctx context.Context) *FutureGetMiningInfoResult + func (c *Client) GetNetTotals(ctx context.Context) (*chainjson.GetNetTotalsResult, error) + func (c *Client) GetNetTotalsAsync(ctx context.Context) *FutureGetNetTotalsResult + func (c *Client) GetNetworkHashPS(ctx context.Context) (int64, error) + func (c *Client) GetNetworkHashPS2(ctx context.Context, blocks int) (int64, error) + func (c *Client) GetNetworkHashPS2Async(ctx context.Context, blocks int) *FutureGetNetworkHashPS + func (c *Client) GetNetworkHashPS3(ctx context.Context, blocks, height int) (int64, error) + func (c *Client) GetNetworkHashPS3Async(ctx context.Context, blocks, height int) *FutureGetNetworkHashPS + func (c *Client) GetNetworkHashPSAsync(ctx context.Context) *FutureGetNetworkHashPS + func (c *Client) GetNetworkInfo(ctx context.Context) (*chainjson.GetNetworkInfoResult, error) + func (c *Client) GetNetworkInfoAsync(ctx context.Context) *FutureGetNetworkInfoResult + func (c *Client) GetPeerInfo(ctx context.Context) ([]chainjson.GetPeerInfoResult, error) + func (c *Client) GetPeerInfoAsync(ctx context.Context) *FutureGetPeerInfoResult + func (c *Client) GetRawMempool(ctx context.Context, txType chainjson.GetRawMempoolTxTypeCmd) ([]*chainhash.Hash, error) + func (c *Client) GetRawMempoolAsync(ctx context.Context, txType chainjson.GetRawMempoolTxTypeCmd) *FutureGetRawMempoolResult + func (c *Client) GetRawMempoolVerbose(ctx context.Context, txType chainjson.GetRawMempoolTxTypeCmd) (map[string]chainjson.GetRawMempoolVerboseResult, error) + func (c *Client) GetRawMempoolVerboseAsync(ctx context.Context, txType chainjson.GetRawMempoolTxTypeCmd) *FutureGetRawMempoolVerboseResult + func (c *Client) GetRawTransaction(ctx context.Context, txHash *chainhash.Hash) (*dcrutil.Tx, error) + func (c *Client) GetRawTransactionAsync(ctx context.Context, txHash *chainhash.Hash) *FutureGetRawTransactionResult + func (c *Client) GetRawTransactionVerbose(ctx context.Context, txHash *chainhash.Hash) (*chainjson.TxRawResult, error) + func (c *Client) GetRawTransactionVerboseAsync(ctx context.Context, txHash *chainhash.Hash) *FutureGetRawTransactionVerboseResult + func (c *Client) GetStakeDifficulty(ctx context.Context) (*chainjson.GetStakeDifficultyResult, error) + func (c *Client) GetStakeDifficultyAsync(ctx context.Context) *FutureGetStakeDifficultyResult + func (c *Client) GetStakeVersionInfo(ctx context.Context, count int32) (*chainjson.GetStakeVersionInfoResult, error) + func (c *Client) GetStakeVersionInfoAsync(ctx context.Context, count int32) *FutureGetStakeVersionInfoResult + func (c *Client) GetStakeVersions(ctx context.Context, hash string, count int32) (*chainjson.GetStakeVersionsResult, error) + func (c *Client) GetStakeVersionsAsync(ctx context.Context, hash string, count int32) *FutureGetStakeVersionsResult + func (c *Client) GetTicketPoolValue(ctx context.Context) (dcrutil.Amount, error) + func (c *Client) GetTicketPoolValueAsync(ctx context.Context) *FutureGetTicketPoolValueResult + func (c *Client) GetTreasuryBalance(ctx context.Context, block *chainhash.Hash, verbose bool) (*chainjson.GetTreasuryBalanceResult, error) + func (c *Client) GetTreasuryBalanceAsync(ctx context.Context, block *chainhash.Hash, verbose bool) *FutureGetTreasuryBalanceResult + func (c *Client) GetTreasurySpendVotes(ctx context.Context, block *chainhash.Hash, tspends []*chainhash.Hash) (*chainjson.GetTreasurySpendVotesResult, error) + func (c *Client) GetTreasurySpendVotesAsync(ctx context.Context, block *chainhash.Hash, tspends []*chainhash.Hash) *FutureGetTreasurySpendVotesResult + func (c *Client) GetTxOut(ctx context.Context, txHash *chainhash.Hash, index uint32, tree int8, ...) (*chainjson.GetTxOutResult, error) + func (c *Client) GetTxOutAsync(ctx context.Context, txHash *chainhash.Hash, index uint32, tree int8, ...) *FutureGetTxOutResult + func (c *Client) GetVoteInfo(ctx context.Context, version uint32) (*chainjson.GetVoteInfoResult, error) + func (c *Client) GetVoteInfoAsync(ctx context.Context, version uint32) *FutureGetVoteInfoResult + func (c *Client) GetWork(ctx context.Context) (*chainjson.GetWorkResult, error) + func (c *Client) GetWorkAsync(ctx context.Context) *FutureGetWork + func (c *Client) GetWorkSubmit(ctx context.Context, data string) (bool, error) + func (c *Client) GetWorkSubmitAsync(ctx context.Context, data string) *FutureGetWorkSubmit + func (c *Client) LiveTickets(ctx context.Context) ([]*chainhash.Hash, error) + func (c *Client) LiveTicketsAsync(ctx context.Context) *FutureLiveTicketsResult + func (c *Client) LoadTxFilter(ctx context.Context, reload bool, addresses []stdaddr.Address, ...) error + func (c *Client) LoadTxFilterAsync(ctx context.Context, reload bool, addresses []stdaddr.Address, ...) *FutureLoadTxFilterResult + func (c *Client) MissedTickets(ctx context.Context) ([]*chainhash.Hash, error) + func (c *Client) MissedTicketsAsync(ctx context.Context) *FutureMissedTicketsResult + func (c *Client) NextID() uint64 + func (c *Client) NotifyBlocks(ctx context.Context) error + func (c *Client) NotifyBlocksAsync(ctx context.Context) *FutureNotifyBlocksResult + func (c *Client) NotifyNewTickets(ctx context.Context) error + func (c *Client) NotifyNewTicketsAsync(ctx context.Context) *FutureNotifyNewTicketsResult + func (c *Client) NotifyNewTransactions(ctx context.Context, verbose bool) error + func (c *Client) NotifyNewTransactionsAsync(ctx context.Context, verbose bool) *FutureNotifyNewTransactionsResult + func (c *Client) NotifySpentAndMissedTickets(ctx context.Context) error + func (c *Client) NotifySpentAndMissedTicketsAsync(ctx context.Context) *FutureNotifySpentAndMissedTicketsResult + func (c *Client) NotifyTSpend(ctx context.Context) error + func (c *Client) NotifyTSpendAsync(ctx context.Context) *FutureNotifyTSpendResult + func (c *Client) NotifyWinningTickets(ctx context.Context) error + func (c *Client) NotifyWinningTicketsAsync(ctx context.Context) *FutureNotifyWinningTicketsResult + func (c *Client) NotifyWork(ctx context.Context) error + func (c *Client) NotifyWorkAsync(ctx context.Context) *FutureNotifyWorkResult + func (c *Client) Ping(ctx context.Context) error + func (c *Client) PingAsync(ctx context.Context) *FuturePingResult + func (c *Client) RawRequest(ctx context.Context, method string, params []json.RawMessage) (json.RawMessage, error) + func (c *Client) RawRequestAsync(ctx context.Context, method string, params []json.RawMessage) *FutureRawResult + func (c *Client) RegenTemplate(ctx context.Context) error + func (c *Client) RegenTemplateAsync(ctx context.Context) *FutureRegenTemplateResult + func (c *Client) Rescan(ctx context.Context, blockHashes []chainhash.Hash) (*chainjson.RescanResult, error) + func (c *Client) RescanAsync(ctx context.Context, blockHashes []chainhash.Hash) *FutureRescanResult + func (c *Client) SearchRawTransactions(ctx context.Context, address stdaddr.Address, skip, count int, reverse bool, ...) ([]*wire.MsgTx, error) + func (c *Client) SearchRawTransactionsAsync(ctx context.Context, address stdaddr.Address, skip, count int, reverse bool, ...) *FutureSearchRawTransactionsResult + func (c *Client) SearchRawTransactionsVerbose(ctx context.Context, address stdaddr.Address, skip, count int, ...) ([]*chainjson.SearchRawTransactionsResult, error) + func (c *Client) SearchRawTransactionsVerboseAsync(ctx context.Context, address stdaddr.Address, skip, count int, ...) *FutureSearchRawTransactionsVerboseResult + func (c *Client) SendRawTransaction(ctx context.Context, tx *wire.MsgTx, allowHighFees bool) (*chainhash.Hash, error) + func (c *Client) SendRawTransactionAsync(ctx context.Context, tx *wire.MsgTx, allowHighFees bool) *FutureSendRawTransactionResult + func (c *Client) Session(ctx context.Context) (*chainjson.SessionResult, error) + func (c *Client) SessionAsync(ctx context.Context) *FutureSessionResult + func (c *Client) SetGenerate(ctx context.Context, enable bool, numCPUs int) error + func (c *Client) SetGenerateAsync(ctx context.Context, enable bool, numCPUs int) *FutureSetGenerateResult + func (c *Client) Shutdown() + func (c *Client) String() string + func (c *Client) SubmitBlock(ctx context.Context, block *dcrutil.Block, ...) error + func (c *Client) SubmitBlockAsync(ctx context.Context, block *dcrutil.Block, ...) *FutureSubmitBlockResult + func (c *Client) TicketFeeInfo(ctx context.Context, blocks *uint32, windows *uint32) (*chainjson.TicketFeeInfoResult, error) + func (c *Client) TicketFeeInfoAsync(ctx context.Context, blocks *uint32, windows *uint32) *FutureTicketFeeInfoResult + func (c *Client) TicketVWAP(ctx context.Context, start *uint32, end *uint32) (dcrutil.Amount, error) + func (c *Client) TicketVWAPAsync(ctx context.Context, start *uint32, end *uint32) *FutureTicketVWAPResult + func (c *Client) TxFeeInfo(ctx context.Context, blocks *uint32, start *uint32, end *uint32) (*chainjson.TxFeeInfoResult, error) + func (c *Client) TxFeeInfoAsync(ctx context.Context, blocks *uint32, start *uint32, end *uint32) *FutureTxFeeInfoResult + func (c *Client) ValidateAddress(ctx context.Context, address stdaddr.Address) (*chainjson.ValidateAddressChainResult, error) + func (c *Client) ValidateAddressAsync(ctx context.Context, address stdaddr.Address) *FutureValidateAddressResult + func (c *Client) VerifyChain(ctx context.Context) (bool, error) + func (c *Client) VerifyChainAsync(ctx context.Context) *FutureVerifyChainResult + func (c *Client) VerifyChainBlocks(ctx context.Context, checkLevel, numBlocks int64) (bool, error) + func (c *Client) VerifyChainBlocksAsync(ctx context.Context, checkLevel, numBlocks int64) *FutureVerifyChainResult + func (c *Client) VerifyChainLevel(ctx context.Context, checkLevel int64) (bool, error) + func (c *Client) VerifyChainLevelAsync(ctx context.Context, checkLevel int64) *FutureVerifyChainResult + func (c *Client) VerifyMessage(ctx context.Context, address stdaddr.Address, signature, message string) (bool, error) + func (c *Client) VerifyMessageAsync(ctx context.Context, address stdaddr.Address, signature, message string) *FutureVerifyMessageResult + func (c *Client) Version(ctx context.Context) (map[string]chainjson.VersionResult, error) + func (c *Client) VersionAsync(ctx context.Context) *FutureVersionResult + func (c *Client) WaitForShutdown() + type ConnConfig struct + Certificates []byte + DisableAutoReconnect bool + DisableConnectOnNew bool + DisableTLS bool + Endpoint string + HTTPPostMode bool + Host string + Pass string + Proxy string + ProxyPass string + ProxyUser string + User string + type FutureAddNodeResult cmdRes + func (r *FutureAddNodeResult) Receive() error + type FutureCreateRawSSRtxResult cmdRes + func (r *FutureCreateRawSSRtxResult) Receive() (*wire.MsgTx, error) + type FutureCreateRawSStxResult cmdRes + func (r *FutureCreateRawSStxResult) Receive() (*wire.MsgTx, error) + type FutureCreateRawTransactionResult cmdRes + func (r *FutureCreateRawTransactionResult) Receive() (*wire.MsgTx, error) + type FutureDebugLevelResult cmdRes + func (r *FutureDebugLevelResult) Receive() (string, error) + type FutureDecodeRawTransactionResult cmdRes + func (r *FutureDecodeRawTransactionResult) Receive() (*chainjson.TxRawResult, error) + type FutureEstimateSmartFeeResult cmdRes + func (r *FutureEstimateSmartFeeResult) Receive() (*chainjson.EstimateSmartFeeResult, error) + type FutureEstimateStakeDiffResult cmdRes + func (r *FutureEstimateStakeDiffResult) Receive() (*chainjson.EstimateStakeDiffResult, error) + type FutureExistsAddressResult cmdRes + func (r *FutureExistsAddressResult) Receive() (bool, error) + type FutureExistsAddressesResult cmdRes + func (r *FutureExistsAddressesResult) Receive() (string, error) + type FutureExistsExpiredTicketsResult cmdRes + func (r *FutureExistsExpiredTicketsResult) Receive() (string, error) + type FutureExistsLiveTicketResult cmdRes + func (r *FutureExistsLiveTicketResult) Receive() (bool, error) + type FutureExistsLiveTicketsResult cmdRes + func (r *FutureExistsLiveTicketsResult) Receive() (string, error) + type FutureExistsMempoolTxsResult cmdRes + func (r *FutureExistsMempoolTxsResult) Receive() (string, error) + type FutureExistsMissedTicketsResult cmdRes + func (r *FutureExistsMissedTicketsResult) Receive() (string, error) + type FutureGenerateResult cmdRes + func (r *FutureGenerateResult) Receive() ([]*chainhash.Hash, error) + type FutureGetAddedNodeInfoNoDNSResult cmdRes + func (r *FutureGetAddedNodeInfoNoDNSResult) Receive() ([]string, error) + type FutureGetAddedNodeInfoResult cmdRes + func (r *FutureGetAddedNodeInfoResult) Receive() ([]chainjson.GetAddedNodeInfoResult, error) + type FutureGetBestBlockHashResult cmdRes + func (r *FutureGetBestBlockHashResult) Receive() (*chainhash.Hash, error) + type FutureGetBestBlockResult cmdRes + func (r *FutureGetBestBlockResult) Receive() (*chainhash.Hash, int64, error) + type FutureGetBlockChainInfoResult cmdRes + func (r *FutureGetBlockChainInfoResult) Receive() (*chainjson.GetBlockChainInfoResult, error) + type FutureGetBlockCountResult cmdRes + func (r *FutureGetBlockCountResult) Receive() (int64, error) + type FutureGetBlockHashResult cmdRes + func (r *FutureGetBlockHashResult) Receive() (*chainhash.Hash, error) + type FutureGetBlockHeaderResult cmdRes + func (r *FutureGetBlockHeaderResult) Receive() (*wire.BlockHeader, error) + type FutureGetBlockHeaderVerboseResult cmdRes + func (r *FutureGetBlockHeaderVerboseResult) Receive() (*chainjson.GetBlockHeaderVerboseResult, error) + type FutureGetBlockResult cmdRes + func (r *FutureGetBlockResult) Receive() (*wire.MsgBlock, error) + type FutureGetBlockSubsidyResult cmdRes + func (r *FutureGetBlockSubsidyResult) Receive() (*chainjson.GetBlockSubsidyResult, error) + type FutureGetBlockVerboseResult cmdRes + func (r *FutureGetBlockVerboseResult) Receive() (*chainjson.GetBlockVerboseResult, error) + type FutureGetCFilterV2Result cmdRes + func (r *FutureGetCFilterV2Result) Receive() (*CFilterV2Result, error) + type FutureGetChainTipsResult cmdRes + func (r *FutureGetChainTipsResult) Receive() ([]chainjson.GetChainTipsResult, error) + type FutureGetCoinSupplyResult cmdRes + func (r *FutureGetCoinSupplyResult) Receive() (dcrutil.Amount, error) + type FutureGetConnectionCountResult cmdRes + func (r *FutureGetConnectionCountResult) Receive() (int64, error) + type FutureGetCurrentNetResult cmdRes + func (r *FutureGetCurrentNetResult) Receive() (wire.CurrencyNet, error) + type FutureGetDifficultyResult cmdRes + func (r *FutureGetDifficultyResult) Receive() (float64, error) + type FutureGetGenerateResult cmdRes + func (r *FutureGetGenerateResult) Receive() (bool, error) + type FutureGetHashesPerSecResult cmdRes + func (r *FutureGetHashesPerSecResult) Receive() (int64, error) + type FutureGetHeadersResult cmdRes + func (r *FutureGetHeadersResult) Receive() (*chainjson.GetHeadersResult, error) + type FutureGetInfoResult cmdRes + func (r *FutureGetInfoResult) Receive() (*chainjson.InfoChainResult, error) + type FutureGetMiningInfoResult cmdRes + func (r *FutureGetMiningInfoResult) Receive() (*chainjson.GetMiningInfoResult, error) + type FutureGetNetTotalsResult cmdRes + func (r *FutureGetNetTotalsResult) Receive() (*chainjson.GetNetTotalsResult, error) + type FutureGetNetworkHashPS cmdRes + func (r *FutureGetNetworkHashPS) Receive() (int64, error) + type FutureGetNetworkInfoResult cmdRes + func (r *FutureGetNetworkInfoResult) Receive() (*chainjson.GetNetworkInfoResult, error) + type FutureGetPeerInfoResult cmdRes + func (r *FutureGetPeerInfoResult) Receive() ([]chainjson.GetPeerInfoResult, error) + type FutureGetRawMempoolResult cmdRes + func (r *FutureGetRawMempoolResult) Receive() ([]*chainhash.Hash, error) + type FutureGetRawMempoolVerboseResult cmdRes + func (r *FutureGetRawMempoolVerboseResult) Receive() (map[string]chainjson.GetRawMempoolVerboseResult, error) + type FutureGetRawTransactionResult cmdRes + func (r *FutureGetRawTransactionResult) Receive() (*dcrutil.Tx, error) + type FutureGetRawTransactionVerboseResult cmdRes + func (r *FutureGetRawTransactionVerboseResult) Receive() (*chainjson.TxRawResult, error) + type FutureGetStakeDifficultyResult cmdRes + func (r *FutureGetStakeDifficultyResult) Receive() (*chainjson.GetStakeDifficultyResult, error) + type FutureGetStakeVersionInfoResult cmdRes + func (r *FutureGetStakeVersionInfoResult) Receive() (*chainjson.GetStakeVersionInfoResult, error) + type FutureGetStakeVersionsResult cmdRes + func (r *FutureGetStakeVersionsResult) Receive() (*chainjson.GetStakeVersionsResult, error) + type FutureGetTicketPoolValueResult cmdRes + func (r *FutureGetTicketPoolValueResult) Receive() (dcrutil.Amount, error) + type FutureGetTreasuryBalanceResult cmdRes + func (r *FutureGetTreasuryBalanceResult) Receive() (*chainjson.GetTreasuryBalanceResult, error) + type FutureGetTreasurySpendVotesResult cmdRes + func (r *FutureGetTreasurySpendVotesResult) Receive() (*chainjson.GetTreasurySpendVotesResult, error) + type FutureGetTxOutResult cmdRes + func (r *FutureGetTxOutResult) Receive() (*chainjson.GetTxOutResult, error) + type FutureGetVoteInfoResult cmdRes + func (r *FutureGetVoteInfoResult) Receive() (*chainjson.GetVoteInfoResult, error) + type FutureGetWork cmdRes + func (r *FutureGetWork) Receive() (*chainjson.GetWorkResult, error) + type FutureGetWorkSubmit cmdRes + func (r *FutureGetWorkSubmit) Receive() (bool, error) + type FutureLiveTicketsResult cmdRes + func (r *FutureLiveTicketsResult) Receive() ([]*chainhash.Hash, error) + type FutureLoadTxFilterResult cmdRes + func (r *FutureLoadTxFilterResult) Receive() error + type FutureMissedTicketsResult cmdRes + func (r *FutureMissedTicketsResult) Receive() ([]*chainhash.Hash, error) + type FutureNotifyBlocksResult cmdRes + func (r *FutureNotifyBlocksResult) Receive() error + type FutureNotifyNewTicketsResult cmdRes + func (r *FutureNotifyNewTicketsResult) Receive() error + type FutureNotifyNewTransactionsResult cmdRes + func (r *FutureNotifyNewTransactionsResult) Receive() error + type FutureNotifySpentAndMissedTicketsResult cmdRes + func (r *FutureNotifySpentAndMissedTicketsResult) Receive() error + type FutureNotifyTSpendResult cmdRes + func (r *FutureNotifyTSpendResult) Receive() error + type FutureNotifyWinningTicketsResult cmdRes + func (r *FutureNotifyWinningTicketsResult) Receive() error + type FutureNotifyWorkResult cmdRes + func (r *FutureNotifyWorkResult) Receive() error + type FuturePingResult cmdRes + func (r *FuturePingResult) Receive() error + type FutureRawResult cmdRes + func (r *FutureRawResult) Receive() (json.RawMessage, error) + type FutureRegenTemplateResult cmdRes + func (r *FutureRegenTemplateResult) Receive() error + type FutureRescanResult cmdRes + func (r *FutureRescanResult) Receive() (*chainjson.RescanResult, error) + type FutureSearchRawTransactionsResult cmdRes + func (r *FutureSearchRawTransactionsResult) Receive() ([]*wire.MsgTx, error) + type FutureSearchRawTransactionsVerboseResult cmdRes + func (r *FutureSearchRawTransactionsVerboseResult) Receive() ([]*chainjson.SearchRawTransactionsResult, error) + type FutureSendRawTransactionResult cmdRes + func (r *FutureSendRawTransactionResult) Receive() (*chainhash.Hash, error) + type FutureSessionResult cmdRes + func (r *FutureSessionResult) Receive() (*chainjson.SessionResult, error) + type FutureSetGenerateResult cmdRes + func (r *FutureSetGenerateResult) Receive() error + type FutureSubmitBlockResult cmdRes + func (r *FutureSubmitBlockResult) Receive() error + type FutureTicketFeeInfoResult cmdRes + func (r *FutureTicketFeeInfoResult) Receive() (*chainjson.TicketFeeInfoResult, error) + type FutureTicketVWAPResult cmdRes + func (r *FutureTicketVWAPResult) Receive() (dcrutil.Amount, error) + type FutureTxFeeInfoResult cmdRes + func (r *FutureTxFeeInfoResult) Receive() (*chainjson.TxFeeInfoResult, error) + type FutureValidateAddressResult cmdRes + func (r *FutureValidateAddressResult) Receive() (*chainjson.ValidateAddressChainResult, error) + type FutureVerifyChainResult cmdRes + func (r *FutureVerifyChainResult) Receive() (bool, error) + type FutureVerifyMessageResult cmdRes + func (r *FutureVerifyMessageResult) Receive() (bool, error) + type FutureVersionResult cmdRes + func (r *FutureVersionResult) Receive() (map[string]chainjson.VersionResult, error) + type NotificationHandlers struct + OnBlockConnected func(blockHeader []byte, transactions [][]byte) + OnBlockDisconnected func(blockHeader []byte) + OnClientConnected func() + OnNewTickets func(hash *chainhash.Hash, height int64, stakeDiff int64, tickets []*chainhash.Hash) + OnRelevantTxAccepted func(transaction []byte) + OnReorganization func(oldHash *chainhash.Hash, oldHeight int32, newHash *chainhash.Hash, ...) + OnSpentAndMissedTickets func(hash *chainhash.Hash, height int64, stakeDiff int64, ...) + OnTSpend func(tspend []byte) + OnTxAccepted func(hash *chainhash.Hash, amount dcrutil.Amount) + OnTxAcceptedVerbose func(txDetails *chainjson.TxRawResult) + OnUnknownNotification func(method string, params []json.RawMessage) + OnWinningTickets func(blockHash *chainhash.Hash, blockHeight int64, tickets []*chainhash.Hash) + OnWork func(data []byte, target []byte, reason string) + type SStxCommitOut struct + Addr stdaddr.Address + ChangeAddr stdaddr.Address + ChangeAmt dcrutil.Amount + CommitAmt dcrutil.Amount Other modules containing this package github.com/decred/dcrd/rpcclient github.com/decred/dcrd/rpcclient/v2 github.com/decred/dcrd/rpcclient/v3 github.com/decred/dcrd/rpcclient/v4 github.com/decred/dcrd/rpcclient/v5 github.com/decred/dcrd/rpcclient/v6 github.com/decred/dcrd/rpcclient/v8