@@ -6,42 +6,42 @@ use super::Method;
66
77/// Data for the JSON RPC methods provided by Bitcoin Core v17.
88pub 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 (
2121 "getmempooldescendants" ,
2222 "GetMempoolDescendants" ,
2323 "get_mempool_descendants" ,
2424 ) ,
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" ) ,
2929 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" ) ,
3131 Method :: new_nothing ( "preciousblock" , "precious_block" ) ,
3232 Method :: new_numeric ( "pruneblockchain" , "prune_blockchain" ) ,
3333 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" ) ,
3535 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" ) ,
3737 Method :: new_no_model ( "getmemoryinfo" , "GetMemoryInfoStats" , "get_memory_info" ) ,
3838 Method :: new_string ( "help" , "help" ) ,
3939 Method :: new_no_model ( "logging" , "Logging" , "logging" ) ,
4040 Method :: new_string ( "stop" , "stop" ) ,
4141 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" ) ,
4545 Method :: new_no_model ( "getmininginfo" , "GetMiningInfo" , "get_mining_info" ) ,
4646 Method :: new_nothing ( "getnetworkhashps" , "get_network_hashes_per_second" ) ,
4747 Method :: new_bool ( "prioritisetransaction" , "prioritise_transaction" ) ,
@@ -52,7 +52,7 @@ pub const METHODS: &[Method] = &[
5252 Method :: new_no_model ( "getaddednodeinfo" , "GetAddedNodeInfo" , "get_added_node_info" ) ,
5353 Method :: new_numeric ( "getconnectioncount" , "get_connection_count" ) ,
5454 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" ) ,
5656 Method :: new_no_model ( "getpeerinfo" , "GetPeerInfo" , "get_peer_info" ) ,
5757 Method :: new_string ( "listbanned" , "list_banned" ) , // v17 docs seem wrong, says no return.
5858 Method :: new_nothing ( "ping" , "ping" ) ,
@@ -69,41 +69,41 @@ pub const METHODS: &[Method] = &[
6969 Method :: new_nothing ( "finalizepsbt" , "finalize_psbt" ) ,
7070 Method :: new_nothing ( "fundrawtransaction" , "fund_raw_transaciton" ) ,
7171 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" ) ,
7373 Method :: new_nothing ( "signrawtransaction" , "sign_raw_transaction" ) ,
7474 Method :: new_nothing ( "signrawtransactionwithkey" , "sign_raw_transaction_with_key" ) ,
7575 Method :: new_nothing ( "testmempoolaccept" , "test_mempool_accept" ) ,
76- Method :: new_modeled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
76+ Method :: new_modelled ( "createmultisig" , "CreateMultisig" , "create_multisig" ) ,
7777 Method :: new_nothing ( "estimatesmartfee" , "estimate_smart_fee" ) ,
7878 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" ) ,
8080 Method :: new_bool ( "verifymessage" , "verify_message" ) ,
8181 Method :: new_nothing ( "abandontransaction" , "abandon_transaction" ) ,
8282 Method :: new_nothing ( "abortrescan" , "abort_rescan" ) ,
83- Method :: new_modeled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
83+ Method :: new_modelled ( "addmultisigaddress" , "AddMultisigAddress" , "add_multisig_address" ) ,
8484 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" ) ,
8989 Method :: new_nothing ( "encryptwallet" , "encrypt_wallet" ) ,
9090 Method :: new_nothing ( "getaccount" , "get_account" ) , // Deprecated
9191 Method :: new_nothing ( "getaccountaddress" , "get_account_address" ) , // Deprecated
9292 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" ) ,
9898 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 (
102102 "getunconfirmedbalance" ,
103103 "GetUnconfirmedBalance" ,
104104 "get_unconfirmed_balance" ,
105105 ) ,
106- Method :: new_modeled ( "getwalletinfo" , "GetWalletInfo" , "get_wallet_info" ) ,
106+ Method :: new_modelled ( "getwalletinfo" , "GetWalletInfo" , "get_wallet_info" ) ,
107107 Method :: new_nothing ( "importaddress" , "import_addressss" ) ,
108108 Method :: new_nothing ( "importmulti" , "import_multi" ) ,
109109 Method :: new_nothing ( "importprivkey" , "import_priv_key" ) ,
@@ -112,45 +112,45 @@ pub const METHODS: &[Method] = &[
112112 Method :: new_nothing ( "importwallet" , "import_walet" ) ,
113113 Method :: new_nothing ( "keypoolrefill" , "keypool_refill" ) ,
114114 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" ) ,
118118 Method :: new_nothing ( "listreceivedbyaccount" , "list_received_by_account" ) , // Deprecated
119- Method :: new_modeled (
119+ Method :: new_modelled (
120120 "listreceivedbyaddress" ,
121121 "ListReceivedByAddress" ,
122122 "list_received_by_address" ,
123123 ) ,
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" ) ,
129129 Method :: new_bool ( "lockunspent" , "lock_unspent" ) ,
130130 Method :: new_bool ( "move" , "move" ) ,
131131 Method :: new_nothing ( "removeprunedfunds" , "remove_pruned_funds" ) ,
132- Method :: new_modeled ( "rescanblockchain" , "RescanBlockchain" , "rescan_blockchain" ) ,
132+ Method :: new_modelled ( "rescanblockchain" , "RescanBlockchain" , "rescan_blockchain" ) ,
133133 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" ) ,
136136 Method :: new_nothing ( "setaccount" , "set_account" ) , // Deprecated
137137 Method :: new_nothing ( "sethdseed" , "set_hd_seed" ) ,
138138 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 (
141141 "signrawtransactionwithwallet" ,
142142 "SignRawTransactionWithWallet" ,
143143 "sign_raw_transaction_with_wallet" ,
144144 ) ,
145145 Method :: new_nothing ( "unloadwallet" , "unload_wallet" ) ,
146- Method :: new_modeled (
146+ Method :: new_modelled (
147147 "walletcreatefundedpsbt" ,
148148 "WalletCreateFundedPsbt" ,
149149 "wallet_create_funded_psbt" ,
150150 ) ,
151151 Method :: new_nothing ( "walletlock" , "wallet_lock" ) ,
152152 Method :: new_nothing ( "walletpassphrase" , "wallet_passphrase" ) ,
153153 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" ) ,
155155 Method :: new_no_model ( "getzmqnotifications" , "GetZmqNotifications" , "get_zmq_notifications" ) ,
156156] ;
0 commit comments