@@ -6,6 +6,7 @@ use super::Method;
66
77/// Data for the JSON RPC methods provided by Bitcoin Core v22.
88pub const METHODS : & [ Method ] = & [
9+ // blockchain
910 Method :: new_modelled ( "getbestblockhash" , "GetBestBlockHash" , "get_best_block_hash" ) ,
1011 Method :: new_modelled ( "getblock" , "GetBlockVerboseZero" , "get_block" ) , // We only check one of the types.
1112 Method :: new_modelled ( "getblockchaininfo" , "GetBlockchainInfo" , "get_blockchain_info" ) ,
@@ -35,21 +36,25 @@ pub const METHODS: &[Method] = &[
3536 Method :: new_modelled ( "scantxoutset" , "ScanTxOutSet" , "scan_tx_out_set" ) ,
3637 Method :: new_bool ( "verifychain" , "verify_chain" ) ,
3738 Method :: new_modelled ( "verifytxoutproof" , "VerifyTxOutProof" , "verify_tx_out_proof" ) ,
38- Method :: new_no_model ( "getrpcinfo" , "GetRpcInfo" , "get_rpc_info" ) ,
39+ // control
3940 Method :: new_no_model ( "getmemoryinfo" , "GetMemoryInfoStats" , "get_memory_info" ) ,
41+ Method :: new_no_model ( "getrpcinfo" , "GetRpcInfo" , "get_rpc_info" ) ,
4042 Method :: new_string ( "help" , "help" ) ,
4143 Method :: new_no_model ( "logging" , "Logging" , "logging" ) ,
4244 Method :: new_nothing ( "stop" , "stop" ) ,
4345 Method :: new_numeric ( "uptime" , "uptime" ) ,
46+ // generating
4447 Method :: new_modelled ( "generateblock" , "GenerateBlock" , "generate_block" ) ,
4548 Method :: new_modelled ( "generatetoaddress" , "GenerateToAddress" , "generate_to_address" ) ,
4649 Method :: new_modelled ( "generatetodescriptor" , "GenerateToDescriptor" , "generate_to_descriptor" ) ,
50+ // mining
4751 Method :: new_modelled ( "getblocktemplate" , "GetBlockTemplate" , "get_block_template" ) ,
4852 Method :: new_no_model ( "getmininginfo" , "GetMiningInfo" , "get_mining_info" ) ,
4953 Method :: new_nothing ( "getnetworkhashps" , "get_network_hashes_per_second" ) ,
5054 Method :: new_bool ( "prioritisetransaction" , "prioritise_transaction" ) ,
5155 Method :: new_nothing ( "submitblock" , "submit_block" ) ,
5256 Method :: new_nothing ( "submitheader" , "submit_header" ) ,
57+ // network
5358 Method :: new_nothing ( "addnode" , "add_node" ) ,
5459 Method :: new_nothing ( "clearbanned" , "clear_banned" ) ,
5560 Method :: new_nothing ( "disconnectnode" , "disconnect_node" ) ,
@@ -63,6 +68,7 @@ pub const METHODS: &[Method] = &[
6368 Method :: new_nothing ( "ping" , "ping" ) ,
6469 Method :: new_nothing ( "setban" , "set_ban" ) ,
6570 Method :: new_nothing ( "setnetworkactive" , "set_network_active" ) ,
71+ // raw transactions
6672 Method :: new_modelled ( "analyzepsbt" , "AnalyzePsbt" , "analyze_psbt" ) ,
6773 Method :: new_nothing ( "combinepsbt" , "combine_psbt" ) ,
6874 Method :: new_nothing ( "combinerawtransaction" , "combine_raw_transaction" ) ,
@@ -80,7 +86,9 @@ pub const METHODS: &[Method] = &[
8086 Method :: new_nothing ( "signrawtransactionwithkey" , "sign_raw_transaction_with_key" ) ,
8187 Method :: new_nothing ( "testmempoolaccept" , "test_mempool_accept" ) ,
8288 Method :: new_modelled ( "utxoupdatepsbt" , "UtxoUpdatePsbt" , "utxo_update_psbt" ) ,
89+ // signer
8390 Method :: new_modelled ( "enumeratesigners" , "EnumerateSigners" , "enumerate_signers" ) ,
91+ // util
8492 Method :: new_modelled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
8593 Method :: new_modelled ( "deriveaddresses" , "DeriveAddresses" , "derive_addresses" ) ,
8694 Method :: new_nothing ( "estimatesmartfee" , "estimate_smart_fee" ) ,
@@ -89,6 +97,7 @@ pub const METHODS: &[Method] = &[
8997 Method :: new_string ( "signmessagewithprivkey" , "sign_message_with_priv_key" ) ,
9098 Method :: new_modelled ( "validateaddress" , "ValidateAddress" , "validate_address" ) ,
9199 Method :: new_bool ( "verifymessage" , "verify_message" ) ,
100+ // wallet
92101 Method :: new_nothing ( "abandontransaction" , "abandon_transaction" ) ,
93102 Method :: new_nothing ( "abortrescan" , "abort_rescan" ) ,
94103 Method :: new_modelled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
@@ -166,5 +175,6 @@ pub const METHODS: &[Method] = &[
166175 Method :: new_nothing ( "walletpassphrase" , "wallet_passphrase" ) ,
167176 Method :: new_nothing ( "walletpassphrasechange" , "wallet_passphrase_change" ) ,
168177 Method :: new_modelled ( "walletprocesspsbt" , "WalletProcessPsbt" , "wallet_process_psbt" ) ,
178+ // zmq
169179 Method :: new_no_model ( "getzmqnotifications" , "GetZmqNotifications" , "get_zmq_notifications" ) ,
170180] ;
0 commit comments