@@ -6,42 +6,42 @@ use super::Method;
6
6
7
7
/// Data for the JSON RPC methods provided by Bitcoin Core v17.
8
8
pub const METHODS : & [ Method ] = & [
9
- Method :: new_modeled ( "getbestblockhash" , "GetBestBlockHash" , "get_best_block_hash" ) ,
10
- Method :: new_modeled ( "getblock" , "GetBlockVerbosityZero" , "get_block" ) , // We only check one of the types.
11
- Method :: new_modeled ( "getblockchaininfo" , "GetBlockchainInfo" , "get_blockchain_info" ) ,
12
- Method :: new_modeled ( "getblockcount" , "GetBlockCount" , "get_block_count" ) ,
13
- Method :: new_modeled ( "getblockhash" , "GetBlockHash" , "get_block_hash" ) ,
14
- Method :: new_modeled ( "getblockheader" , "GetBlockHeader" , "get_block_header" ) ,
15
- Method :: new_modeled ( "getblockstats" , "GetBlockStats" , "get_block_stats" ) ,
16
- Method :: new_modeled ( "getchaintips" , "GetChainTips" , "get_chain_tips" ) ,
17
- Method :: new_modeled ( "getchaintxstats" , "GetChainTxStats" , "get_chain_tx_stats" ) ,
18
- Method :: new_modeled ( "getdifficulty" , "GetDifficulty" , "get_difficulty" ) ,
19
- Method :: new_modeled ( "getmempoolancestors" , "GetMempoolAncestors" , "get_mempool_ancestors" ) ,
20
- Method :: new_modeled (
9
+ Method :: new_modelled ( "getbestblockhash" , "GetBestBlockHash" , "get_best_block_hash" ) ,
10
+ Method :: new_modelled ( "getblock" , "GetBlockVerbosityZero" , "get_block" ) , // We only check one of the types.
11
+ Method :: new_modelled ( "getblockchaininfo" , "GetBlockchainInfo" , "get_blockchain_info" ) ,
12
+ Method :: new_modelled ( "getblockcount" , "GetBlockCount" , "get_block_count" ) ,
13
+ Method :: new_modelled ( "getblockhash" , "GetBlockHash" , "get_block_hash" ) ,
14
+ Method :: new_modelled ( "getblockheader" , "GetBlockHeader" , "get_block_header" ) ,
15
+ Method :: new_modelled ( "getblockstats" , "GetBlockStats" , "get_block_stats" ) ,
16
+ Method :: new_modelled ( "getchaintips" , "GetChainTips" , "get_chain_tips" ) ,
17
+ Method :: new_modelled ( "getchaintxstats" , "GetChainTxStats" , "get_chain_tx_stats" ) ,
18
+ Method :: new_modelled ( "getdifficulty" , "GetDifficulty" , "get_difficulty" ) ,
19
+ Method :: new_modelled ( "getmempoolancestors" , "GetMempoolAncestors" , "get_mempool_ancestors" ) ,
20
+ Method :: new_modelled (
21
21
"getmempooldescendants" ,
22
22
"GetMempoolDescendants" ,
23
23
"get_mempool_descendants" ,
24
24
) ,
25
- Method :: new_modeled ( "getmempoolentry" , "GetMempoolEntry" , "get_mempool_entry" ) ,
26
- Method :: new_modeled ( "getmempoolinfo" , "GetMempoolInfo" , "get_mempool_info" ) ,
27
- Method :: new_modeled ( "getrawmempool" , "GetRawMempool" , "get_raw_mempool" ) ,
28
- Method :: new_modeled ( "gettxout" , "GetTxOut" , "get_tx_out" ) ,
25
+ Method :: new_modelled ( "getmempoolentry" , "GetMempoolEntry" , "get_mempool_entry" ) ,
26
+ Method :: new_modelled ( "getmempoolinfo" , "GetMempoolInfo" , "get_mempool_info" ) ,
27
+ Method :: new_modelled ( "getrawmempool" , "GetRawMempool" , "get_raw_mempool" ) ,
28
+ Method :: new_modelled ( "gettxout" , "GetTxOut" , "get_tx_out" ) ,
29
29
Method :: new_string ( "gettxoutproof" , "get_tx_out_proof" ) ,
30
- Method :: new_modeled ( "gettxoutsetinfo" , "GetTxOutSetInfo" , "get_tx_out_set_info" ) ,
30
+ Method :: new_modelled ( "gettxoutsetinfo" , "GetTxOutSetInfo" , "get_tx_out_set_info" ) ,
31
31
Method :: new_nothing ( "preciousblock" , "precious_block" ) ,
32
32
Method :: new_numeric ( "pruneblockchain" , "prune_blockchain" ) ,
33
33
Method :: new_nothing ( "savemempool" , "save_mempool" ) ,
34
- Method :: new_modeled ( "scantxoutset" , "ScanTxOutSet" , "scan_tx_out_set" ) ,
34
+ Method :: new_modelled ( "scantxoutset" , "ScanTxOutSet" , "scan_tx_out_set" ) ,
35
35
Method :: new_bool ( "verifychain" , "verify_chain" ) ,
36
- Method :: new_modeled ( "verifytxoutproof" , "VerifyTxOutProof" , "verify_tx_out_proof" ) ,
36
+ Method :: new_modelled ( "verifytxoutproof" , "VerifyTxOutProof" , "verify_tx_out_proof" ) ,
37
37
Method :: new_no_model ( "getmemoryinfo" , "GetMemoryInfoStats" , "get_memory_info" ) ,
38
38
Method :: new_string ( "help" , "help" ) ,
39
39
Method :: new_no_model ( "logging" , "Logging" , "logging" ) ,
40
40
Method :: new_string ( "stop" , "stop" ) ,
41
41
Method :: new_numeric ( "uptime" , "uptime" ) ,
42
- Method :: new_modeled ( "generate" , "Generate" , "generate" ) ,
43
- Method :: new_modeled ( "generatetoaddress" , "GenerateToAddress" , "generate_to_address" ) ,
44
- Method :: new_modeled ( "getblocktemplate" , "GetBlockTemplate" , "get_block_template" ) ,
42
+ Method :: new_modelled ( "generate" , "Generate" , "generate" ) ,
43
+ Method :: new_modelled ( "generatetoaddress" , "GenerateToAddress" , "generate_to_address" ) ,
44
+ Method :: new_modelled ( "getblocktemplate" , "GetBlockTemplate" , "get_block_template" ) ,
45
45
Method :: new_no_model ( "getmininginfo" , "GetMiningInfo" , "get_mining_info" ) ,
46
46
Method :: new_nothing ( "getnetworkhashps" , "get_network_hashes_per_second" ) ,
47
47
Method :: new_bool ( "prioritisetransaction" , "prioritise_transaction" ) ,
@@ -52,7 +52,7 @@ pub const METHODS: &[Method] = &[
52
52
Method :: new_no_model ( "getaddednodeinfo" , "GetAddedNodeInfo" , "get_added_node_info" ) ,
53
53
Method :: new_numeric ( "getconnectioncount" , "get_connection_count" ) ,
54
54
Method :: new_no_model ( "getnettotals" , "GetNetTotals" , "get_net_totals" ) ,
55
- Method :: new_modeled ( "getnetworkinfo" , "GetNetworkInfo" , "get_network_info" ) ,
55
+ Method :: new_modelled ( "getnetworkinfo" , "GetNetworkInfo" , "get_network_info" ) ,
56
56
Method :: new_no_model ( "getpeerinfo" , "GetPeerInfo" , "get_peer_info" ) ,
57
57
Method :: new_string ( "listbanned" , "list_banned" ) , // v17 docs seem wrong, says no return.
58
58
Method :: new_nothing ( "ping" , "ping" ) ,
@@ -69,41 +69,41 @@ pub const METHODS: &[Method] = &[
69
69
Method :: new_nothing ( "finalizepsbt" , "finalize_psbt" ) ,
70
70
Method :: new_nothing ( "fundrawtransaction" , "fund_raw_transaciton" ) ,
71
71
Method :: new_nothing ( "getrawtransaction" , "get_raw_transaction" ) ,
72
- Method :: new_modeled ( "sendrawtransaction" , "SendRawTransaction" , "send_raw_transaction" ) ,
72
+ Method :: new_modelled ( "sendrawtransaction" , "SendRawTransaction" , "send_raw_transaction" ) ,
73
73
Method :: new_nothing ( "signrawtransaction" , "sign_raw_transaction" ) ,
74
74
Method :: new_nothing ( "signrawtransactionwithkey" , "sign_raw_transaction_with_key" ) ,
75
75
Method :: new_nothing ( "testmempoolaccept" , "test_mempool_accept" ) ,
76
- Method :: new_modeled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
76
+ Method :: new_modelled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
77
77
Method :: new_nothing ( "estimatesmartfee" , "estimate_smart_fee" ) ,
78
78
Method :: new_string ( "signmessagewithprivkey" , "sign_message_with_priv_key" ) ,
79
- Method :: new_modeled ( "validateaddress" , "ValidateAddress" , "validate_address" ) ,
79
+ Method :: new_modelled ( "validateaddress" , "ValidateAddress" , "validate_address" ) ,
80
80
Method :: new_bool ( "verifymessage" , "verify_message" ) ,
81
81
Method :: new_nothing ( "abandontransaction" , "abandon_transaction" ) ,
82
82
Method :: new_nothing ( "abortrescan" , "abort_rescan" ) ,
83
- Method :: new_modeled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
83
+ Method :: new_modelled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
84
84
Method :: new_nothing ( "backupwallet" , "backup_wallet" ) ,
85
- Method :: new_modeled ( "bumpfee" , "BumpFee" , "bump_fee" ) ,
86
- Method :: new_modeled ( "createwallet" , "CreateWallet" , "create_wallet" ) ,
87
- Method :: new_modeled ( "dumpprivkey" , "DumpPrivKey" , "dump_priv_key" ) ,
88
- Method :: new_modeled ( "dumpwallet" , "DumpWallet" , "dump_wallet" ) ,
85
+ Method :: new_modelled ( "bumpfee" , "BumpFee" , "bump_fee" ) ,
86
+ Method :: new_modelled ( "createwallet" , "CreateWallet" , "create_wallet" ) ,
87
+ Method :: new_modelled ( "dumpprivkey" , "DumpPrivKey" , "dump_priv_key" ) ,
88
+ Method :: new_modelled ( "dumpwallet" , "DumpWallet" , "dump_wallet" ) ,
89
89
Method :: new_nothing ( "encryptwallet" , "encrypt_wallet" ) ,
90
90
Method :: new_nothing ( "getaccount" , "get_account" ) , // Deprecated
91
91
Method :: new_nothing ( "getaccountaddress" , "get_account_address" ) , // Deprecated
92
92
Method :: new_nothing ( "getaddressbyaccount" , "get_address_by_account" ) , // Deprecated
93
- Method :: new_modeled ( "getaddressesbylabel" , "GetAddressesByLabel" , "get_addresses_by_label" ) ,
94
- Method :: new_modeled ( "getaddressinfo" , "GetAddressInfo" , "get_address_info" ) ,
95
- Method :: new_modeled ( "getbalance" , "GetBalance" , "get_balance" ) ,
96
- Method :: new_modeled ( "getnewaddress" , "GetNewAddress" , "get_new_address" ) ,
97
- Method :: new_modeled ( "getrawchangeaddress" , "GetRawChangeAddress" , "get_raw_change_address" ) ,
93
+ Method :: new_modelled ( "getaddressesbylabel" , "GetAddressesByLabel" , "get_addresses_by_label" ) ,
94
+ Method :: new_modelled ( "getaddressinfo" , "GetAddressInfo" , "get_address_info" ) ,
95
+ Method :: new_modelled ( "getbalance" , "GetBalance" , "get_balance" ) ,
96
+ Method :: new_modelled ( "getnewaddress" , "GetNewAddress" , "get_new_address" ) ,
97
+ Method :: new_modelled ( "getrawchangeaddress" , "GetRawChangeAddress" , "get_raw_change_address" ) ,
98
98
Method :: new_nothing ( "getreceivedbyaccount" , "get_received_by_account" ) , // Deprecated
99
- Method :: new_modeled ( "getreceivedbyaddress" , "GetReceivedByAddress" , "get_received_by_address" ) ,
100
- Method :: new_modeled ( "gettransaction" , "GetTransaction" , "get_transaction" ) ,
101
- Method :: new_modeled (
99
+ Method :: new_modelled ( "getreceivedbyaddress" , "GetReceivedByAddress" , "get_received_by_address" ) ,
100
+ Method :: new_modelled ( "gettransaction" , "GetTransaction" , "get_transaction" ) ,
101
+ Method :: new_modelled (
102
102
"getunconfirmedbalance" ,
103
103
"GetUnconfirmedBalance" ,
104
104
"get_unconfirmed_balance" ,
105
105
) ,
106
- Method :: new_modeled ( "getwalletinfo" , "GetWalletInfo" , "get_wallet_info" ) ,
106
+ Method :: new_modelled ( "getwalletinfo" , "GetWalletInfo" , "get_wallet_info" ) ,
107
107
Method :: new_nothing ( "importaddress" , "import_addressss" ) ,
108
108
Method :: new_nothing ( "importmulti" , "import_multi" ) ,
109
109
Method :: new_nothing ( "importprivkey" , "import_priv_key" ) ,
@@ -112,45 +112,45 @@ pub const METHODS: &[Method] = &[
112
112
Method :: new_nothing ( "importwallet" , "import_walet" ) ,
113
113
Method :: new_nothing ( "keypoolrefill" , "keypool_refill" ) ,
114
114
Method :: new_nothing ( "listaccounts" , "list_accounts" ) , // Deprecated
115
- Method :: new_modeled ( "listaddressgroupings" , "ListAddressGroupings" , "list_address_groupings" ) ,
116
- Method :: new_modeled ( "listlabels" , "ListLabels" , "list_labels" ) ,
117
- Method :: new_modeled ( "listlockunspent" , "ListLockUnspent" , "list_lock_unspent" ) ,
115
+ Method :: new_modelled ( "listaddressgroupings" , "ListAddressGroupings" , "list_address_groupings" ) ,
116
+ Method :: new_modelled ( "listlabels" , "ListLabels" , "list_labels" ) ,
117
+ Method :: new_modelled ( "listlockunspent" , "ListLockUnspent" , "list_lock_unspent" ) ,
118
118
Method :: new_nothing ( "listreceivedbyaccount" , "list_received_by_account" ) , // Deprecated
119
- Method :: new_modeled (
119
+ Method :: new_modelled (
120
120
"listreceivedbyaddress" ,
121
121
"ListReceivedByAddress" ,
122
122
"list_received_by_address" ,
123
123
) ,
124
- Method :: new_modeled ( "listsinceblock" , "ListSinceBlock" , "list_since_block" ) ,
125
- Method :: new_modeled ( "listtransactions" , "ListTransactions" , "list_transactions" ) ,
126
- Method :: new_modeled ( "listunspent" , "ListUnspent" , "list_unspent" ) ,
127
- Method :: new_modeled ( "listwallets" , "ListWallets" , "list_wallets" ) ,
128
- Method :: new_modeled ( "loadwallet" , "LoadWallet" , "load_wallet" ) ,
124
+ Method :: new_modelled ( "listsinceblock" , "ListSinceBlock" , "list_since_block" ) ,
125
+ Method :: new_modelled ( "listtransactions" , "ListTransactions" , "list_transactions" ) ,
126
+ Method :: new_modelled ( "listunspent" , "ListUnspent" , "list_unspent" ) ,
127
+ Method :: new_modelled ( "listwallets" , "ListWallets" , "list_wallets" ) ,
128
+ Method :: new_modelled ( "loadwallet" , "LoadWallet" , "load_wallet" ) ,
129
129
Method :: new_bool ( "lockunspent" , "lock_unspent" ) ,
130
130
Method :: new_bool ( "move" , "move" ) ,
131
131
Method :: new_nothing ( "removeprunedfunds" , "remove_pruned_funds" ) ,
132
- Method :: new_modeled ( "rescanblockchain" , "RescanBlockchain" , "rescan_blockchain" ) ,
132
+ Method :: new_modelled ( "rescanblockchain" , "RescanBlockchain" , "rescan_blockchain" ) ,
133
133
Method :: new_nothing ( "sendfrom" , "send_from" ) , // Deprecated
134
- Method :: new_modeled ( "sendmany" , "SendMany" , "send_many" ) ,
135
- Method :: new_modeled ( "sendtoaddress" , "SendToAddress" , "send_to_address" ) ,
134
+ Method :: new_modelled ( "sendmany" , "SendMany" , "send_many" ) ,
135
+ Method :: new_modelled ( "sendtoaddress" , "SendToAddress" , "send_to_address" ) ,
136
136
Method :: new_nothing ( "setaccount" , "set_account" ) , // Deprecated
137
137
Method :: new_nothing ( "sethdseed" , "set_hd_seed" ) ,
138
138
Method :: new_bool ( "settxfee" , "set_tx_fee" ) ,
139
- Method :: new_modeled ( "signmessage" , "SignMessage" , "sign_message" ) ,
140
- Method :: new_modeled (
139
+ Method :: new_modelled ( "signmessage" , "SignMessage" , "sign_message" ) ,
140
+ Method :: new_modelled (
141
141
"signrawtransactionwithwallet" ,
142
142
"SignRawTransactionWithWallet" ,
143
143
"sign_raw_transaction_with_wallet" ,
144
144
) ,
145
145
Method :: new_nothing ( "unloadwallet" , "unload_wallet" ) ,
146
- Method :: new_modeled (
146
+ Method :: new_modelled (
147
147
"walletcreatefundedpsbt" ,
148
148
"WalletCreateFundedPsbt" ,
149
149
"wallet_create_funded_psbt" ,
150
150
) ,
151
151
Method :: new_nothing ( "walletlock" , "wallet_lock" ) ,
152
152
Method :: new_nothing ( "walletpassphrase" , "wallet_passphrase" ) ,
153
153
Method :: new_nothing ( "walletpassphrasechange" , "wallet_passphrase_change" ) ,
154
- Method :: new_modeled ( "walletprocesspsbt" , "WalletProcessPsbt" , "wallet_process_psbt" ) ,
154
+ Method :: new_modelled ( "walletprocesspsbt" , "WalletProcessPsbt" , "wallet_process_psbt" ) ,
155
155
Method :: new_no_model ( "getzmqnotifications" , "GetZmqNotifications" , "get_zmq_notifications" ) ,
156
156
] ;
0 commit comments