package
0.0.0-20191129015703-b51e6e604d8f
Repository: https://github.com/utopiacoinorg/ucd.git
Documentation: pkg.go.dev

# README

jsonrpc/types

Build Status ISC License GoDoc

Package types implements concrete types for marshalling to and from the ucd JSON-RPC commands, return values, and notifications. A comprehensive suite of tests is provided to ensure proper functionality.

The provided types are automatically registered with ucjson when the package is imported. Although this package was primarily written for ucd, it has intentionally been designed so it can be used as a standalone package for any projects needing to marshal to and from ucd JSON-RPC requests and responses.

Installation and Updating

$ go get -u github.com/UtopiaCoinOrg/ucd/rpc/jsonrpc/types

License

Package types is licensed under the copyfree ISC License.

# Functions

EstimateSmartFeeModeAddr is a helper routine that allocates a new EstimateSmartFeeMode value to store v and returns a pointer to it.
NewAddNodeCmd returns a new instance which can be used to issue an addnode 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.
NewCreateRawSSRtxCmd creates a new CreateRawSSRtxCmd.
NewCreateRawSStxCmd creates a new CreateRawSStxCmd.
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.
NewEstimateFeeCmd returns a new instance which can be used to issue an estimatefee JSON-RPC command.
NewEstimateSmartFeeCmd returns a new instance which can be used to issue an estimatesmartfee JSON-RPC command.
NewEstimateStakeDiffCmd defines the eststakedifficulty JSON-RPC command.
NewExistsAddressCmd returns a new instance which can be used to issue a existsaddress JSON-RPC command.
NewExistsAddressesCmd returns a new instance which can be used to issue an existsaddresses JSON-RPC command.
NewExistsExpiredTicketsCmd returns a new instance which can be used to issue an existsexpiredtickets JSON-RPC command.
NewExistsLiveTicketCmd returns a new instance which can be used to issue an existsliveticket JSON-RPC command.
NewExistsLiveTicketsCmd returns a new instance which can be used to issue an existslivetickets JSON-RPC command.
NewExistsMempoolTxsCmd returns a new instance which can be used to issue an existslivetickets JSON-RPC command.
NewExistsMissedTicketsCmd returns a new instance which can be used to issue an existsmissedtickets JSON-RPC command.
No description provided by the author
No description provided by the author
No description provided by the author
NewGenerateCmd returns a new instance which can be used to issue a generate JSON-RPC command.
NewGetAddedNodeInfoCmd returns a new instance which can be used to issue a getaddednodeinfo 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.
NewGetBlockSubsidyCmd returns a new instance which can be used to issue a getblocksubsidy JSON-RPC command.
NewGetBlockTemplateCmd returns a new instance which can be used to issue a getblocktemplate JSON-RPC command.
NewGetCFilterCmd returns a new instance which can be used to issue a getcfilter JSON-RPC command.
NewGetCFilterHeaderCmd returns a new instance which can be used to issue a getcfilterheader JSON-RPC command.
NewGetChainTipsCmd returns a new instance which can be used to issue a getchaintips JSON-RPC command.
NewGetCoinSupplyCmd returns a new instance which can be used to issue a getcoinsupply 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.
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.
NewGetPeerInfoCmd returns a new instance which can be used to issue a getpeer 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.
NewGetStakeDifficultyCmd returns a new instance which can be used to issue a JSON-RPC getstakedifficulty command.
NewGetStakeVersionInfoCmd returns a new instance which can be used to issue a JSON-RPC getstakeversioninfo command.
NewGetStakeVersionsCmd returns a new instance which can be used to issue a JSON-RPC getstakeversions command.
NewGetTicketPoolValueCmd returns a new instance which can be used to issue a getticketpoolvalue JSON-RPC command.
No description provided by the author
NewGetTxOutCmd returns a new instance which can be used to issue a gettxout JSON-RPC command.
NewGetTxOutSetInfoCmd returns a new instance which can be used to issue a gettxoutsetinfo JSON-RPC command.
NewGetVoteInfoCmd returns a new instance which can be used to issue a JSON-RPC getvoteinfo 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.
NewLiveTicketsCmd returns a new instance which can be used to issue a JSON-RPC livetickets command.
NewLoadTxFilterCmd returns a new instance which can be used to issue a loadtxfilter JSON-RPC command.
NewMissedTicketsCmd returns a new instance which can be used to issue a JSON-RPC missedtickets command.
NewNewTicketsNtfn creates a new NewTicketsNtfn.
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.
No description provided by the author
NewNotifyNewTicketsCmd creates a new NotifyNewTicketsCmd.
NewNotifyNewTransactionsCmd returns a new instance which can be used to issue a notifynewtransactions JSON-RPC command.
NewNotifySpentAndMissedTicketsCmd creates a new NotifySpentAndMissedTicketsCmd.
NewNotifyStakeDifficultyCmd creates a new NotifyStakeDifficultyCmd.
NewNotifyWinningTicketsCmd creates a new NotifyWinningTicketsCmd.
NewPingCmd returns a new instance which can be used to issue a ping JSON-RPC command.
NewRebroadcastMissedCmd returns a new instance which can be used to issue a JSON-RPC rebroadcastmissed command.
NewRebroadcastWinnersCmd returns a new instance which can be used to issue a JSON-RPC rebroadcastwinners command.
NewRelevantTxAcceptedNtfn returns a new instance which can be used to issue a relevantxaccepted JSON-RPC notification.
NewReorganizationNtfn returns a new instance which can be used to issue a blockdisconnected JSON-RPC notification.
NewRescanCmd returns a new instance which can be used to issue a rescan JSON-RPC command.
NewSearchRawTransactionsCmd returns a new instance which can be used to issue a sendrawtransaction JSON-RPC command.
No description provided by the author
No description provided by the author
NewSendRawTransactionCmd returns a new instance which can be used to issue a sendrawtransaction JSON-RPC command.
NewSessionCmd returns a new instance which can be used to issue a session JSON-RPC command.
NewSetGenerateCmd returns a new instance which can be used to issue a setgenerate JSON-RPC command.
NewSpentAndMissedTicketsNtfn creates a new SpentAndMissedTicketsNtfn.
NewStakeDifficultyNtfn creates a new StakeDifficultyNtfn.
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.
No description provided by the author
NewStopNotifyNewTransactionsCmd returns a new instance which can be used to issue a stopnotifynewtransactions JSON-RPC command.
NewSubmitBlockCmd returns a new instance which can be used to issue a submitblock JSON-RPC command.
NewTicketFeeInfoCmd returns a new instance which can be used to issue a JSON-RPC ticket fee info command.
NewTicketsForAddressCmd returns a new instance which can be used to issue a JSON-RPC tickets for bucket command.
NewTicketVWAPCmd returns a new instance which can be used to issue a JSON-RPC ticket volume weight average price 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.
NewTxFeeInfoCmd returns a new instance which can be used to issue a JSON-RPC ticket fee info 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.
NewVersionCmd returns a new instance which can be used to issue a JSON-RPC version command.
NewWinningTicketsNtfn creates a new WinningTicketsNtfn.

# Constants

ANAdd indicates the specified host should be added as a persistent peer.
ANOneTry indicates the specified host should try to connect once, but it should not be made persistent.
ANRemove indicates the specified peer should be removed.
BlockConnectedNtfnMethod is the method used for notifications from the chain server that a block has been connected.
BlockDisconnectedNtfnMethod is the method used for notifications from the chain server that a block has been disconnected.
EstimateSmartFeeConservative potentially returns a conservative result.
EstimateSmartFeeEconomical returns an economical result.
No description provided by the author
GRMAll indicates any type of transaction should be returned.
GRMRegular indicates only regular transactions should be returned.
GRMRevocations indicates that only revocations should be returned.
GRMTickets indicates that only tickets should be returned.
GRMVotes indicates that only votes should be returned.
NConnect indicates the specified host that should be connected to.
NDisconnect indicates the specified peer should be disonnected.
No description provided by the author
NewTicketsNtfnMethod is the method of the daemon newtickets notification.
NRemove indicates the specified peer that should be removed as a persistent peer.
RelevantTxAcceptedNtfnMethod is the method used for notifications from the chain server that inform a client that a relevant transaction was accepted by the mempool.
ReorganizationNtfnMethod is the method used for notifications that the block chain is in the process of a reorganization.
SpentAndMissedTicketsNtfnMethod is the method of the daemon spentandmissedtickets notification.
StakeDifficultyNtfnMethod is the method of the daemon stakedifficulty notification.
TxAcceptedNtfnMethod is the method used for notifications from the chain server that a transaction has been accepted into the mempool.
TxAcceptedVerboseNtfnMethod is the method used for notifications from the chain server that a transaction has been accepted into the mempool.
WinningTicketsNtfnMethod is the method of the daemon winningtickets notification.

# Structs

AddNodeCmd defines the addnode JSON-RPC command.
Agenda models an individual agenda including its choices.
AgendaInfo provides an overview of an agenda in a consensus deployment.
AuthenticateCmd defines the authenticate JSON-RPC command.
BlockConnectedNtfn defines the blockconnected JSON-RPC notification.
BlockDisconnectedNtfn defines the blockdisconnected JSON-RPC notification.
Choice models an individual choice inside an Agenda.
CreateRawSSRtxCmd is a type handling custom marshaling and unmarshaling of createrawssrtx JSON RPC commands.
CreateRawSStxCmd is a type handling custom marshaling and unmarshaling of createrawsstx JSON RPC commands.
CreateRawTransactionCmd defines the createrawtransaction JSON-RPC command.
DebugLevelCmd defines the debuglevel JSON-RPC command.
DecodeRawTransactionCmd defines the decoderawtransaction JSON-RPC command.
DecodeScriptCmd defines the decodescript JSON-RPC command.
DecodeScriptResult models the data returned from the decodescript command.
EstimateFeeCmd defines the estimatefee JSON-RPC command.
EstimateSmartFeeCmd defines the estimatesmartfee JSON-RPC command.
EstimateSmartFeeResult models the data returned from the estimatesmartfee command.
EstimateStakeDiffCmd defines the eststakedifficulty JSON-RPC command.
EstimateStakeDiffResult models the data returned from the estimatestakediff command.
ExistsAddressCmd defines the existsaddress JSON-RPC command.
ExistsAddressesCmd defines the existsaddresses JSON-RPC command.
ExistsExpiredTicketsCmd defines the existsexpiredtickets JSON-RPC command.
ExistsLiveTicketCmd defines the existsliveticket JSON-RPC command.
ExistsLiveTicketsCmd defines the existslivetickets JSON-RPC command.
ExistsMempoolTxsCmd defines the existsmempooltxs JSON-RPC command.
ExistsMissedTicketsCmd defines the existsmissedtickets JSON-RPC command.
FeeInfoBlock is ticket fee information about a block.
FeeInfoMempool is ticket fee information about the mempool.
FeeInfoRange is ticket fee information about a range.
FeeInfoWindow is ticket fee information about an adjustment window.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateCmd defines the generate JSON-RPC command.
GetAddedNodeInfoCmd defines the getaddednodeinfo JSON-RPC command.
GetAddedNodeInfoResult models the data from the getaddednodeinfo command.
GetAddedNodeInfoResultAddr models the data of the addresses portion of the getaddednodeinfo command.
GetBestBlockCmd defines the getbestblock JSON-RPC command.
GetBestBlockHashCmd defines the getbestblockhash JSON-RPC command.
GetBestBlockResult models the data from the getbestblock command.
GetBlockChainInfoCmd defines the getblockchaininfo JSON-RPC command.
GetBlockChainInfoResult models the data returned from the getblockchaininfo command.
GetBlockCmd defines the getblock JSON-RPC command.
GetBlockCountCmd defines the getblockcount JSON-RPC command.
GetBlockHashCmd defines the getblockhash JSON-RPC command.
GetBlockHeaderCmd defines the getblockheader JSON-RPC command.
GetBlockHeaderVerboseResult models the data from the getblockheader command when the verbose flag is set.
GetBlockSubsidyCmd defines the getblocksubsidy JSON-RPC command.
GetBlockSubsidyResult models the data returned from the getblocksubsidy command.
GetBlockTemplateCmd defines the getblocktemplate JSON-RPC command.
GetBlockTemplateResult models the data returned from the getblocktemplate command.
GetBlockTemplateResultAux models the coinbaseaux field of the getblocktemplate command.
GetBlockTemplateResultTx models the transactions field of the getblocktemplate command.
GetBlockVerboseResult models the data from the getblock command when the verbose flag is set.
GetCFilterCmd defines the getcfilter JSON-RPC command.
GetCFilterHeaderCmd defines the getcfilterheader JSON-RPC command.
GetChainTipsCmd defines the getchaintips JSON-RPC command.
GetChainTipsResult models the data returns from the getchaintips command.
GetCoinSupplyCmd defines the getcoinsupply JSON-RPC command.
GetConnectionCountCmd defines the getconnectioncount JSON-RPC command.
GetCurrentNetCmd defines the getcurrentnet JSON-RPC command.
GetDifficultyCmd defines the getdifficulty JSON-RPC command.
GetGenerateCmd defines the getgenerate JSON-RPC command.
GetHashesPerSecCmd defines the gethashespersec JSON-RPC command.
GetHeadersCmd defines the getheaders JSON-RPC command.
GetHeadersResult models the data returned by the chain server getheaders command.
GetInfoCmd defines the getinfo JSON-RPC command.
GetMempoolInfoCmd defines the getmempoolinfo JSON-RPC command.
GetMempoolInfoResult models the data returned from the getmempoolinfo command.
GetMiningInfoCmd defines the getmininginfo JSON-RPC command.
GetMiningInfoResult models the data from the getmininginfo command.
GetNetTotalsCmd defines the getnettotals JSON-RPC command.
GetNetTotalsResult models the data returned from the getnettotals command.
GetNetworkHashPSCmd defines the getnetworkhashps JSON-RPC command.
GetNetworkInfoCmd defines the getnetworkinfo JSON-RPC command.
GetNetworkInfoResult models the data returned from the getnetworkinfo command.
GetPeerInfoCmd defines the getpeerinfo JSON-RPC command.
GetPeerInfoResult models the data returned from the getpeerinfo command.
GetRawMempoolCmd defines the getmempool JSON-RPC command.
GetRawMempoolVerboseResult models the data returned from the getrawmempool command when the verbose flag is set.
GetRawTransactionCmd defines the getrawtransaction JSON-RPC command.
GetStakeDifficultyCmd is a type handling custom marshaling and unmarshaling of getstakedifficulty JSON RPC commands.
GetStakeDifficultyResult models the data returned from the getstakedifficulty command.
GetStakeVersionInfoCmd returns stake version info for the current interval.
GetStakeVersionInfoResult models the resulting data for getstakeversioninfo command.
GetStakeVersionsCmd returns stake version for a range of blocks.
GetStakeVersionsResult models the data returned from the getstakeversions command.
GetTicketPoolValueCmd defines the getticketpoolvalue JSON-RPC command.
No description provided by the author
No description provided by the author
GetTxOutCmd defines the gettxout JSON-RPC command.
GetTxOutResult models the data from the gettxout command.
GetTxOutSetInfoCmd defines the gettxoutsetinfo JSON-RPC command.
GetVoteInfoCmd returns voting results over a range of blocks.
GetVoteInfoResult models the data returned from the getvoteinfo command.
GetWorkCmd defines the getwork JSON-RPC command.
GetWorkResult models the data from the getwork command.
HelpCmd defines the help JSON-RPC command.
InfoChainResult models the data returned by the chain server getinfo command.
LiveTicketsCmd is a type handling custom marshaling and unmarshaling of livetickets JSON RPC commands.
LiveTicketsResult models the data returned from the livetickets command.
LoadTxFilterCmd defines the loadtxfilter request parameters to load or reload a transaction filter.
LocalAddressesResult models the localaddresses data from the getnetworkinfo command.
MissedTicketsCmd is a type handling custom marshaling and unmarshaling of missedtickets JSON RPC commands.
MissedTicketsResult models the data returned from the missedtickets command.
NetworksResult models the networks data from the getnetworkinfo command.
NewTicketsNtfn is a type handling custom marshaling and unmarshaling of newtickets JSON websocket notifications.
NodeCmd defines the dropnode JSON-RPC command.
NotifyBlocksCmd defines the notifyblocks JSON-RPC command.
No description provided by the author
NotifyNewTicketsCmd is a type handling custom marshaling and unmarshaling of notifynewtickets JSON websocket extension commands.
NotifyNewTransactionsCmd defines the notifynewtransactions JSON-RPC command.
NotifySpentAndMissedTicketsCmd is a type handling custom marshaling and unmarshaling of notifyspentandmissedtickets JSON websocket extension commands.
NotifyStakeDifficultyCmd is a type handling custom marshaling and unmarshaling of notifystakedifficulty JSON websocket extension commands.
NotifyWinningTicketsCmd is a type handling custom marshaling and unmarshaling of notifywinningtickets JSON websocket extension commands.
OutPoint describes a transaction outpoint that will be marshalled to and from JSON.
PingCmd defines the ping JSON-RPC command.
PrevOut represents previous output for an input Vin.
RebroadcastMissedCmd is a type handling custom marshaling and unmarshaling of rebroadcastwinners JSON RPC commands.
RebroadcastWinnersCmd is a type handling custom marshaling and unmarshaling of rebroadcastwinners JSON RPC commands.
RelevantTxAcceptedNtfn defines the parameters to the relevanttxaccepted JSON-RPC notification.
ReorganizationNtfn defines the reorganization JSON-RPC notification.
RescanCmd defines the rescan JSON-RPC command.
RescannedBlock contains the hash and all discovered transactions of a single rescanned block.
RescanResult models the result object returned by the rescan RPC.
ScriptPubKeyResult models the scriptPubKey data of a tx script.
ScriptSig models a signature script.
SearchRawTransactionsCmd defines the searchrawtransactions JSON-RPC command.
SearchRawTransactionsResult models the data from the searchrawtransaction command.
No description provided by the author
No description provided by the author
SendRawTransactionCmd defines the sendrawtransaction JSON-RPC command.
SessionCmd defines the session JSON-RPC command.
SessionResult models the data from the session command.
SetGenerateCmd defines the setgenerate JSON-RPC command.
SpentAndMissedTicketsNtfn is a type handling custom marshaling and unmarshaling of spentandmissedtickets JSON websocket notifications.
SStxCommitOut represents the output to an SStx transaction.
SStxInput represents the inputs to an SStx transaction.
StakeDifficultyNtfn is a type handling custom marshaling and unmarshaling of stakedifficulty JSON websocket notifications.
StakeVersions models the data for GetStakeVersionsResult.
StopCmd defines the stop JSON-RPC command.
StopNotifyBlocksCmd defines the stopnotifyblocks JSON-RPC command.
No description provided by the author
StopNotifyNewTransactionsCmd defines the stopnotifynewtransactions JSON-RPC command.
SubmitBlockCmd defines the submitblock JSON-RPC command.
SubmitBlockOptions represents the optional options struct provided with a SubmitBlockCmd command.
TemplateRequest is a request object as defined in BIP22 (https://en.bitcoin.it/wiki/BIP_0022), it is optionally provided as an pointer argument to GetBlockTemplateCmd.
Ticket is the structure representing a ticket.
TicketFeeInfoCmd defines the ticketsfeeinfo JSON-RPC command.
TicketFeeInfoResult models the data returned from the ticketfeeinfo command.
TicketsForAddressCmd defines the ticketsforbucket JSON-RPC command.
TicketsForAddressResult models the data returned from the ticketforaddress command.
TicketVWAPCmd defines the ticketvwap JSON-RPC command.
TransactionInput represents the inputs to a transaction.
TxAcceptedNtfn defines the txaccepted JSON-RPC notification.
TxAcceptedVerboseNtfn defines the txacceptedverbose JSON-RPC notification.
TxFeeInfoCmd defines the ticketsfeeinfo JSON-RPC command.
TxFeeInfoResult models the data returned from the ticketfeeinfo command.
No description provided by the author
TxRawDecodeResult models the data from the decoderawtransaction command.
TxRawResult models the data from the getrawtransaction command.
ValidateAddressChainResult models the data returned by the chain server validateaddress command.
ValidateAddressCmd defines the validateaddress JSON-RPC command.
VerifyChainCmd defines the verifychain JSON-RPC command.
VerifyMessageCmd defines the verifymessage JSON-RPC command.
VersionBits models a generic version:bits tuple.
VersionCmd defines the version JSON-RPC command.
VersionCount models a generic version:count tuple.
VersionInterval models a cooked version count for an interval.
VersionResult models objects included in the version response.
Vin models parts of the tx data.
VinPrevOut is like Vin except it includes PrevOut.
Vout models parts of the tx data.
WinningTicketsNtfn is a type handling custom marshaling and unmarshaling of blockconnected JSON websocket notifications.

# Type aliases

AddNodeSubCmd defines the type used in the addnode JSON-RPC command for the sub command field.
EstimateSmartFeeMode defines estimation mode to be used with the estimatesmartfee command.
GetRawMempoolTxTypeCmd defines the type used in the getrawmempool JSON-RPC command for the TxType command field.
Method is the type used to register method and parameter pairs with ucjson.
NodeSubCmd defines the type used in the addnode JSON-RPC command for the sub command field.