Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
CmdMethod returns the method for the passed command.
Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it.
GenerateHelp generates and returns help output for the provided method and result types given a map to provide the appropriate keys for the method synopsis, field descriptions, conditions, and result descriptions.
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
Int32 is a helper routine that allocates a new int32 value to store v and returns a pointer to it.
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
IsValidIDType checks that the ID field (which can go in any of the JSON-RPC requests, responses, or notifications) is valid.
MarshalCmd marshals the passed command to a JSON-RPC request byte slice that is suitable for transmission to an RPC server.
MarshalResponse marshals the passed id, result, and RPCError to a JSON-RPC response byte slice that is suitable for transmission to a JSON-RPC client.
MethodUsageFlags returns the usage flags for the passed command method.
MethodUsageText returns a one-line usage string for the provided method.
MustRegisterCmd performs the same function as RegisterCmd except it panics if there is an error.
NewAccountBalanceNtfn returns a new instance which can be used to issue an accountbalance JSON-RPC notification.
NewAddMultisigAddressCmd returns a new instance which can be used to issue a addmultisigaddress JSON-RPC command.
NewAddNodeCmd returns a new instance which can be used to issue an addnode JSON-RPC command.
NewAddWitnessAddressCmd returns a new instance which can be used to issue a addwitnessaddress JSON-RPC command.
NewAuthenticateCmd returns a new instance which can be used to issue an authenticate JSON-RPC command.
NewBlockConnectedNtfn returns a new instance which can be used to issue a blockconnected JSON-RPC notification.
NewBlockDisconnectedNtfn returns a new instance which can be used to issue a blockdisconnected JSON-RPC notification.
NewBtcdConnectedNtfn returns a new instance which can be used to issue a btcdconnected JSON-RPC notification.
NewCmd provides a generic mechanism to create a new command that can marshal to a JSON-RPC request while respecting the requirements of the provided method.
NewCreateEncryptedWalletCmd returns a new instance which can be used to issue a createencryptedwallet JSON-RPC command.
NewCreateMultisigCmd returns a new instance which can be used to issue a createmultisig JSON-RPC command.
NewCreateNewAccountCmd returns a new instance which can be used to issue a createnewaccount JSON-RPC command.
NewCreateRawTransactionCmd returns a new instance which can be used to issue a createrawtransaction JSON-RPC command.
NewDebugLevelCmd returns a new DebugLevelCmd which can be used to issue a debuglevel JSON-RPC command.
NewDecodeRawTransactionCmd returns a new instance which can be used to issue a decoderawtransaction JSON-RPC command.
NewDecodeScriptCmd returns a new instance which can be used to issue a decodescript JSON-RPC command.
NewDumpPrivKeyCmd returns a new instance which can be used to issue a dumpprivkey JSON-RPC command.
NewDumpWalletCmd returns a new instance which can be used to issue a dumpwallet JSON-RPC command.
NewEncryptWalletCmd returns a new instance which can be used to issue a encryptwallet JSON-RPC command.
NewEstimateFeeCmd returns a new instance which can be used to issue a estimatefee JSON-RPC command.
NewEstimatePriorityCmd returns a new instance which can be used to issue a estimatepriority JSON-RPC command.
NewEstimateSmartFeeCmd returns a new instance which can be used to issue a estimatesmartfee JSON-RPC command.
NewExportWatchingWalletCmd returns a new instance which can be used to issue a exportwatchingwallet JSON-RPC command.
NewFilteredBlockConnectedNtfn returns a new instance which can be used to issue a filteredblockconnected JSON-RPC notification.
NewFilteredBlockDisconnectedNtfn returns a new instance which can be used to issue a filteredblockdisconnected JSON-RPC notification.
NewGenerateCmd returns a new instance which can be used to issue a generate JSON-RPC command.
NewGetAccountAddressCmd returns a new instance which can be used to issue a getaccountaddress JSON-RPC command.
NewGetAccountCmd returns a new instance which can be used to issue a getaccount JSON-RPC command.
NewGetAddedNodeInfoCmd returns a new instance which can be used to issue a getaddednodeinfo JSON-RPC command.
NewGetAddressesByAccountCmd returns a new instance which can be used to issue a getaddressesbyaccount JSON-RPC command.
NewGetBalanceCmd returns a new instance which can be used to issue a getbalance JSON-RPC command.
NewGetBestBlockCmd returns a new instance which can be used to issue a getbestblock JSON-RPC command.
NewGetBestBlockHashCmd returns a new instance which can be used to issue a getbestblockhash JSON-RPC command.
NewGetBlockChainInfoCmd returns a new instance which can be used to issue a getblockchaininfo JSON-RPC command.
NewGetBlockCmd returns a new instance which can be used to issue a getblock JSON-RPC command.
NewGetBlockCountCmd returns a new instance which can be used to issue a getblockcount JSON-RPC command.
NewGetBlockHashCmd returns a new instance which can be used to issue a getblockhash JSON-RPC command.
NewGetBlockHeaderCmd returns a new instance which can be used to issue a getblockheader JSON-RPC command.
NewGetBlockTemplateCmd returns a new instance which can be used to issue a getblocktemplate JSON-RPC command.
NewGetChainTipsCmd returns a new instance which can be used to issue a getchaintips JSON-RPC command.
NewGetConnectionCountCmd returns a new instance which can be used to issue a getconnectioncount JSON-RPC command.
NewGetCurrentNetCmd returns a new instance which can be used to issue a getcurrentnet JSON-RPC command.
NewGetDifficultyCmd returns a new instance which can be used to issue a getdifficulty JSON-RPC command.
NewGetGenerateCmd returns a new instance which can be used to issue a getgenerate JSON-RPC command.
NewGetHashesPerSecCmd returns a new instance which can be used to issue a gethashespersec JSON-RPC command.
NewGetHeadersCmd returns a new instance which can be used to issue a getheaders JSON-RPC command.
NewGetInfoCmd returns a new instance which can be used to issue a getinfo JSON-RPC command.
NewGetMempoolEntryCmd returns a new instance which can be used to issue a getmempoolentry JSON-RPC command.
NewGetMempoolInfoCmd returns a new instance which can be used to issue a getmempool JSON-RPC command.
NewGetMiningInfoCmd returns a new instance which can be used to issue a getmininginfo JSON-RPC command.
NewGetNetTotalsCmd returns a new instance which can be used to issue a getnettotals JSON-RPC command.
NewGetNetworkHashPSCmd returns a new instance which can be used to issue a getnetworkhashps JSON-RPC command.
NewGetNetworkInfoCmd returns a new instance which can be used to issue a getnetworkinfo JSON-RPC command.
NewGetNewAddressCmd returns a new instance which can be used to issue a getnewaddress JSON-RPC command.
NewGetPeerInfoCmd returns a new instance which can be used to issue a getpeer JSON-RPC command.
NewGetRawChangeAddressCmd returns a new instance which can be used to issue a getrawchangeaddress JSON-RPC command.
NewGetRawMempoolCmd returns a new instance which can be used to issue a getrawmempool JSON-RPC command.
NewGetRawTransactionCmd returns a new instance which can be used to issue a getrawtransaction JSON-RPC command.
NewGetReceivedByAccountCmd returns a new instance which can be used to issue a getreceivedbyaccount JSON-RPC command.
NewGetReceivedByAddressCmd returns a new instance which can be used to issue a getreceivedbyaddress JSON-RPC command.
NewGetTransactionCmd returns a new instance which can be used to issue a gettransaction JSON-RPC command.
NewGetTxOutCmd returns a new instance which can be used to issue a gettxout JSON-RPC command.
NewGetTxOutProofCmd returns a new instance which can be used to issue a gettxoutproof JSON-RPC command.
NewGetTxOutSetInfoCmd returns a new instance which can be used to issue a gettxoutsetinfo JSON-RPC command.
NewGetUnconfirmedBalanceCmd returns a new instance which can be used to issue a getunconfirmedbalance JSON-RPC command.
NewGetWalletInfoCmd returns a new instance which can be used to issue a getwalletinfo JSON-RPC command.
NewGetWorkCmd returns a new instance which can be used to issue a getwork JSON-RPC command.
NewHelpCmd returns a new instance which can be used to issue a help JSON-RPC command.
NewImportAddressCmd returns a new instance which can be used to issue an importaddress JSON-RPC command.
NewImportPrivKeyCmd returns a new instance which can be used to issue a importprivkey JSON-RPC command.
NewImportPubKeyCmd returns a new instance which can be used to issue an importpubkey JSON-RPC command.
NewImportWalletCmd returns a new instance which can be used to issue a importwallet JSON-RPC command.
NewInvalidateBlockCmd returns a new instance which can be used to issue a invalidateblock JSON-RPC command.
NewKeyPoolRefillCmd returns a new instance which can be used to issue a keypoolrefill JSON-RPC command.
NewListAccountsCmd returns a new instance which can be used to issue a listaccounts JSON-RPC command.
NewListAddressGroupingsCmd returns a new instance which can be used to issue a listaddressgroupoings JSON-RPC command.
NewListAddressTransactionsCmd returns a new instance which can be used to issue a listaddresstransactions JSON-RPC command.
NewListAllTransactionsCmd returns a new instance which can be used to issue a listalltransactions JSON-RPC command.
NewListLockUnspentCmd returns a new instance which can be used to issue a listlockunspent JSON-RPC command.
NewListReceivedByAccountCmd returns a new instance which can be used to issue a listreceivedbyaccount JSON-RPC command.
NewListReceivedByAddressCmd returns a new instance which can be used to issue a listreceivedbyaddress JSON-RPC command.
NewListSinceBlockCmd returns a new instance which can be used to issue a listsinceblock JSON-RPC command.
NewListTransactionsCmd returns a new instance which can be used to issue a listtransactions JSON-RPC command.
NewListUnspentCmd returns a new instance which can be used to issue a listunspent JSON-RPC command.
NewLoadTxFilterCmd returns a new instance which can be used to issue a loadtxfilter JSON-RPC command.
NewLockUnspentCmd returns a new instance which can be used to issue a lockunspent JSON-RPC command.
NewMoveCmd returns a new instance which can be used to issue a move JSON-RPC command.
NewNewTxNtfn returns a new instance which can be used to issue a newtx JSON-RPC notification.
NewNodeCmd returns a new instance which can be used to issue a `node` JSON-RPC command.
NewNotifyBlocksCmd returns a new instance which can be used to issue a notifyblocks JSON-RPC command.
NewNotifyNewTransactionsCmd returns a new instance which can be used to issue a notifynewtransactions JSON-RPC command.
NewNotifyReceivedCmd returns a new instance which can be used to issue a notifyreceived JSON-RPC command.
NewNotifySpentCmd returns a new instance which can be used to issue a notifyspent JSON-RPC command.
NewPingCmd returns a new instance which can be used to issue a ping JSON-RPC command.
NewPreciousBlockCmd returns a new instance which can be used to issue a preciousblock JSON-RPC command.
NewReconsiderBlockCmd returns a new instance which can be used to issue a reconsiderblock JSON-RPC command.
NewRecoverAddressesCmd returns a new instance which can be used to issue a recoveraddresses JSON-RPC command.
NewRecvTxNtfn returns a new instance which can be used to issue a recvtx JSON-RPC notification.
NewRedeemingTxNtfn returns a new instance which can be used to issue a redeemingtx JSON-RPC notification.
NewRelevantTxAcceptedNtfn returns a new instance which can be used to issue a relevantxaccepted JSON-RPC notification.
NewRenameAccountCmd returns a new instance which can be used to issue a renameaccount JSON-RPC command.
NewRequest returns a new JSON-RPC 1.0 request object given the provided id, method, and parameters.
NewRescanBlocksCmd returns a new instance which can be used to issue a rescan JSON-RPC command.
NewRescanCmd returns a new instance which can be used to issue a rescan JSON-RPC command.
NewRescanFinishedNtfn returns a new instance which can be used to issue a rescanfinished JSON-RPC notification.
NewRescanProgressNtfn returns a new instance which can be used to issue a rescanprogress JSON-RPC notification.
NewResponse returns a new JSON-RPC response object given the provided id, marshalled result, and RPC error.
NewRPCError constructs and returns a new JSON-RPC error that is suitable for use in a JSON-RPC Response object.
NewSearchRawTransactionsCmd returns a new instance which can be used to issue a sendrawtransaction JSON-RPC command.
NewSendFromCmd returns a new instance which can be used to issue a sendfrom JSON-RPC command.
NewSendManyCmd returns a new instance which can be used to issue a sendmany JSON-RPC command.
NewSendRawTransactionCmd returns a new instance which can be used to issue a sendrawtransaction JSON-RPC command.
NewSendToAddressCmd returns a new instance which can be used to issue a sendtoaddress JSON-RPC command.
NewSessionCmd returns a new instance which can be used to issue a session JSON-RPC command.
NewSetAccountCmd returns a new instance which can be used to issue a setaccount JSON-RPC command.
NewSetGenerateCmd returns a new instance which can be used to issue a setgenerate JSON-RPC command.
NewSetTxFeeCmd returns a new instance which can be used to issue a settxfee JSON-RPC command.
NewSignMessageCmd returns a new instance which can be used to issue a signmessage JSON-RPC command.
NewSignRawTransactionCmd returns a new instance which can be used to issue a signrawtransaction JSON-RPC command.
NewStopCmd returns a new instance which can be used to issue a stop JSON-RPC command.
NewStopNotifyBlocksCmd returns a new instance which can be used to issue a stopnotifyblocks JSON-RPC command.
NewStopNotifyNewTransactionsCmd returns a new instance which can be used to issue a stopnotifynewtransactions JSON-RPC command.
NewStopNotifyReceivedCmd returns a new instance which can be used to issue a stopnotifyreceived JSON-RPC command.
NewStopNotifySpentCmd returns a new instance which can be used to issue a stopnotifyspent JSON-RPC command.
NewSubmitBlockCmd returns a new instance which can be used to issue a submitblock JSON-RPC command.
NewTxAcceptedNtfn returns a new instance which can be used to issue a txaccepted JSON-RPC notification.
NewTxAcceptedVerboseNtfn returns a new instance which can be used to issue a txacceptedverbose JSON-RPC notification.
NewUptimeCmd returns a new instance which can be used to issue an uptime JSON-RPC command.
NewValidateAddressCmd returns a new instance which can be used to issue a validateaddress JSON-RPC command.
NewVerifyChainCmd returns a new instance which can be used to issue a verifychain JSON-RPC command.
NewVerifyMessageCmd returns a new instance which can be used to issue a verifymessage JSON-RPC command.
NewVerifyTxOutProofCmd returns a new instance which can be used to issue a verifytxoutproof JSON-RPC command.
NewVersionCmd returns a new instance which can be used to issue a JSON-RPC version command.
NewWalletIsLockedCmd returns a new instance which can be used to issue a walletislocked JSON-RPC command.
NewWalletLockCmd returns a new instance which can be used to issue a walletlock JSON-RPC command.
NewWalletLockStateNtfn returns a new instance which can be used to issue a walletlockstate JSON-RPC notification.
NewWalletPassphraseChangeCmd returns a new instance which can be used to issue a walletpassphrasechange JSON-RPC command.
NewWalletPassphraseCmd returns a new instance which can be used to issue a walletpassphrase JSON-RPC command.
RegisterCmd registers a new command that will automatically marshal to and from JSON-RPC with full type checking and positional parameter support.
RegisteredCmdMethods returns a sorted list of methods for all registered commands.
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Uint is a helper routine that allocates a new uint value to store v and returns a pointer to it.
Uint32 is a helper routine that allocates a new uint32 value to store v and returns a pointer to it.
Uint64 is a helper routine that allocates a new uint64 value to store v and returns a pointer to it.
UnmarshalCmd unmarshals a JSON-RPC request into a suitable concrete command so long as the method type contained within the marshalled request is registered.