@@ -6,6 +6,7 @@ use super::Method;
6
6
7
7
/// Data for the JSON RPC methods provided by Bitcoin Core v22.
8
8
pub const METHODS : & [ Method ] = & [
9
+ // blockchain
9
10
Method :: new_modelled ( "getbestblockhash" , "GetBestBlockHash" , "get_best_block_hash" ) ,
10
11
Method :: new_modelled ( "getblock" , "GetBlockVerboseZero" , "get_block" ) , // We only check one of the types.
11
12
Method :: new_modelled ( "getblockchaininfo" , "GetBlockchainInfo" , "get_blockchain_info" ) ,
@@ -35,21 +36,25 @@ pub const METHODS: &[Method] = &[
35
36
Method :: new_modelled ( "scantxoutset" , "ScanTxOutSet" , "scan_tx_out_set" ) ,
36
37
Method :: new_bool ( "verifychain" , "verify_chain" ) ,
37
38
Method :: new_modelled ( "verifytxoutproof" , "VerifyTxOutProof" , "verify_tx_out_proof" ) ,
38
- Method :: new_no_model ( "getrpcinfo" , "GetRpcInfo" , "get_rpc_info" ) ,
39
+ // control
39
40
Method :: new_no_model ( "getmemoryinfo" , "GetMemoryInfoStats" , "get_memory_info" ) ,
41
+ Method :: new_no_model ( "getrpcinfo" , "GetRpcInfo" , "get_rpc_info" ) ,
40
42
Method :: new_string ( "help" , "help" ) ,
41
43
Method :: new_no_model ( "logging" , "Logging" , "logging" ) ,
42
44
Method :: new_nothing ( "stop" , "stop" ) ,
43
45
Method :: new_numeric ( "uptime" , "uptime" ) ,
46
+ // generating
44
47
Method :: new_modelled ( "generateblock" , "GenerateBlock" , "generate_block" ) ,
45
48
Method :: new_modelled ( "generatetoaddress" , "GenerateToAddress" , "generate_to_address" ) ,
46
49
Method :: new_modelled ( "generatetodescriptor" , "GenerateToDescriptor" , "generate_to_descriptor" ) ,
50
+ // mining
47
51
Method :: new_modelled ( "getblocktemplate" , "GetBlockTemplate" , "get_block_template" ) ,
48
52
Method :: new_no_model ( "getmininginfo" , "GetMiningInfo" , "get_mining_info" ) ,
49
53
Method :: new_nothing ( "getnetworkhashps" , "get_network_hashes_per_second" ) ,
50
54
Method :: new_bool ( "prioritisetransaction" , "prioritise_transaction" ) ,
51
55
Method :: new_nothing ( "submitblock" , "submit_block" ) ,
52
56
Method :: new_nothing ( "submitheader" , "submit_header" ) ,
57
+ // network
53
58
Method :: new_nothing ( "addnode" , "add_node" ) ,
54
59
Method :: new_nothing ( "clearbanned" , "clear_banned" ) ,
55
60
Method :: new_nothing ( "disconnectnode" , "disconnect_node" ) ,
@@ -63,6 +68,7 @@ pub const METHODS: &[Method] = &[
63
68
Method :: new_nothing ( "ping" , "ping" ) ,
64
69
Method :: new_nothing ( "setban" , "set_ban" ) ,
65
70
Method :: new_nothing ( "setnetworkactive" , "set_network_active" ) ,
71
+ // raw transactions
66
72
Method :: new_modelled ( "analyzepsbt" , "AnalyzePsbt" , "analyze_psbt" ) ,
67
73
Method :: new_nothing ( "combinepsbt" , "combine_psbt" ) ,
68
74
Method :: new_nothing ( "combinerawtransaction" , "combine_raw_transaction" ) ,
@@ -80,7 +86,9 @@ pub const METHODS: &[Method] = &[
80
86
Method :: new_nothing ( "signrawtransactionwithkey" , "sign_raw_transaction_with_key" ) ,
81
87
Method :: new_nothing ( "testmempoolaccept" , "test_mempool_accept" ) ,
82
88
Method :: new_modelled ( "utxoupdatepsbt" , "UtxoUpdatePsbt" , "utxo_update_psbt" ) ,
89
+ // signer
83
90
Method :: new_modelled ( "enumeratesigners" , "EnumerateSigners" , "enumerate_signers" ) ,
91
+ // util
84
92
Method :: new_modelled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
85
93
Method :: new_modelled ( "deriveaddresses" , "DeriveAddresses" , "derive_addresses" ) ,
86
94
Method :: new_nothing ( "estimatesmartfee" , "estimate_smart_fee" ) ,
@@ -89,6 +97,7 @@ pub const METHODS: &[Method] = &[
89
97
Method :: new_string ( "signmessagewithprivkey" , "sign_message_with_priv_key" ) ,
90
98
Method :: new_modelled ( "validateaddress" , "ValidateAddress" , "validate_address" ) ,
91
99
Method :: new_bool ( "verifymessage" , "verify_message" ) ,
100
+ // wallet
92
101
Method :: new_nothing ( "abandontransaction" , "abandon_transaction" ) ,
93
102
Method :: new_nothing ( "abortrescan" , "abort_rescan" ) ,
94
103
Method :: new_modelled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
@@ -166,5 +175,6 @@ pub const METHODS: &[Method] = &[
166
175
Method :: new_nothing ( "walletpassphrase" , "wallet_passphrase" ) ,
167
176
Method :: new_nothing ( "walletpassphrasechange" , "wallet_passphrase_change" ) ,
168
177
Method :: new_modelled ( "walletprocesspsbt" , "WalletProcessPsbt" , "wallet_process_psbt" ) ,
178
+ // zmq
169
179
Method :: new_no_model ( "getzmqnotifications" , "GetZmqNotifications" , "get_zmq_notifications" ) ,
170
180
] ;
0 commit comments