11
11
12
12
/// Implements Bitcoin Core JSON-RPC API method `getblockchaininfo`
13
13
#[ macro_export]
14
- macro_rules! impl_client_v17__getblockchaininfo {
14
+ macro_rules! impl_client_v17__get_blockchain_info {
15
15
( ) => {
16
16
impl Client {
17
17
pub fn get_blockchain_info( & self ) -> Result <GetBlockchainInfo > {
@@ -23,7 +23,7 @@ macro_rules! impl_client_v17__getblockchaininfo {
23
23
24
24
/// Implements Bitcoin Core JSON-RPC API method `getbestblockhash`
25
25
#[ macro_export]
26
- macro_rules! impl_client_v17__getbestblockhash {
26
+ macro_rules! impl_client_v17__get_best_block_hash {
27
27
( ) => {
28
28
impl Client {
29
29
/// Gets the blockhash of the current chain tip.
@@ -41,7 +41,7 @@ macro_rules! impl_client_v17__getbestblockhash {
41
41
42
42
/// Implements Bitcoin Core JSON-RPC API method `getblock`
43
43
#[ macro_export]
44
- macro_rules! impl_client_v17__getblock {
44
+ macro_rules! impl_client_v17__get_block {
45
45
( ) => {
46
46
impl Client {
47
47
/// Gets a block by blockhash.
@@ -65,7 +65,7 @@ macro_rules! impl_client_v17__getblock {
65
65
66
66
/// Implements Bitcoin Core JSON-RPC API method `getblockcount`
67
67
#[ macro_export]
68
- macro_rules! impl_client_v17__getblockcount {
68
+ macro_rules! impl_client_v17__get_block_count {
69
69
( ) => {
70
70
impl Client {
71
71
pub fn get_block_count( & self ) -> Result <GetBlockCount > {
@@ -77,7 +77,7 @@ macro_rules! impl_client_v17__getblockcount {
77
77
78
78
/// Implements Bitcoin Core JSON-RPC API method `getblockhash`
79
79
#[ macro_export]
80
- macro_rules! impl_client_v17__getblockhash {
80
+ macro_rules! impl_client_v17__get_block_hash {
81
81
( ) => {
82
82
impl Client {
83
83
pub fn get_block_hash( & self , height: u64 ) -> Result <GetBlockHash > {
@@ -89,7 +89,7 @@ macro_rules! impl_client_v17__getblockhash {
89
89
90
90
/// Implements Bitcoin Core JSON-RPC API method `getblockheader`
91
91
#[ macro_export]
92
- macro_rules! impl_client_v17__getblockheader {
92
+ macro_rules! impl_client_v17__get_block_header {
93
93
( ) => {
94
94
impl Client {
95
95
pub fn get_block_header( & self , hash: & BlockHash ) -> Result <GetBlockHeader > {
@@ -109,7 +109,7 @@ macro_rules! impl_client_v17__getblockheader {
109
109
110
110
/// Implements Bitcoin Core JSON-RPC API method `getblockstats`
111
111
#[ macro_export]
112
- macro_rules! impl_client_v17__getblockstats {
112
+ macro_rules! impl_client_v17__get_block_stats {
113
113
( ) => {
114
114
impl Client {
115
115
pub fn get_block_stats_by_height( & self , height: u32 ) -> Result <GetBlockStats > {
@@ -125,7 +125,7 @@ macro_rules! impl_client_v17__getblockstats {
125
125
126
126
/// Implements Bitcoin Core JSON-RPC API method `getchaintips`
127
127
#[ macro_export]
128
- macro_rules! impl_client_v17__getchaintips {
128
+ macro_rules! impl_client_v17__get_chain_tips {
129
129
( ) => {
130
130
impl Client {
131
131
pub fn get_chain_tips( & self ) -> Result <GetChainTips > { self . call( "getchaintips" , & [ ] ) }
@@ -135,7 +135,7 @@ macro_rules! impl_client_v17__getchaintips {
135
135
136
136
/// Implements Bitcoin Core JSON-RPC API method `getchaintxstats`
137
137
#[ macro_export]
138
- macro_rules! impl_client_v17__getchaintxstats {
138
+ macro_rules! impl_client_v17__get_chain_tx_stats {
139
139
( ) => {
140
140
impl Client {
141
141
pub fn get_chain_tx_stats( & self ) -> Result <GetChainTxStats > {
@@ -147,7 +147,7 @@ macro_rules! impl_client_v17__getchaintxstats {
147
147
148
148
/// Implements Bitcoin Core JSON-RPC API method `getdifficulty`
149
149
#[ macro_export]
150
- macro_rules! impl_client_v17__getdifficulty {
150
+ macro_rules! impl_client_v17__get_difficulty {
151
151
( ) => {
152
152
impl Client {
153
153
pub fn get_difficulty( & self ) -> Result <GetDifficulty > {
@@ -159,7 +159,7 @@ macro_rules! impl_client_v17__getdifficulty {
159
159
160
160
/// Implements Bitcoin Core JSON-RPC API method `getmempoolancestors`
161
161
#[ macro_export]
162
- macro_rules! impl_client_v17__getmempoolancestors {
162
+ macro_rules! impl_client_v17__get_mempool_ancestors {
163
163
( ) => {
164
164
impl Client {
165
165
pub fn get_mempool_ancestors( & self , txid: Txid ) -> Result <GetMempoolAncestors > {
@@ -179,7 +179,7 @@ macro_rules! impl_client_v17__getmempoolancestors {
179
179
180
180
/// Implements Bitcoin Core JSON-RPC API method `getmempooldescendants`
181
181
#[ macro_export]
182
- macro_rules! impl_client_v17__getmempooldescendants {
182
+ macro_rules! impl_client_v17__get_mempool_descendants {
183
183
( ) => {
184
184
impl Client {
185
185
pub fn get_mempool_descendants( & self , txid: Txid ) -> Result <GetMempoolDescendants > {
@@ -199,7 +199,7 @@ macro_rules! impl_client_v17__getmempooldescendants {
199
199
200
200
/// Implements Bitcoin Core JSON-RPC API method `getmempoolentry`
201
201
#[ macro_export]
202
- macro_rules! impl_client_v17__getmempoolentry {
202
+ macro_rules! impl_client_v17__get_mempool_entry {
203
203
( ) => {
204
204
impl Client {
205
205
pub fn get_mempool_entry( & self , txid: Txid ) -> Result <GetMempoolEntry > {
@@ -211,7 +211,7 @@ macro_rules! impl_client_v17__getmempoolentry {
211
211
212
212
/// Implements Bitcoin Core JSON-RPC API method `getmempoolinfo`
213
213
#[ macro_export]
214
- macro_rules! impl_client_v17__getmempoolinfo {
214
+ macro_rules! impl_client_v17__get_mempool_info {
215
215
( ) => {
216
216
impl Client {
217
217
pub fn get_mempool_info( & self ) -> Result <GetMempoolInfo > {
@@ -223,7 +223,7 @@ macro_rules! impl_client_v17__getmempoolinfo {
223
223
224
224
/// Implements Bitcoin Core JSON-RPC API method `getrawmempool`
225
225
#[ macro_export]
226
- macro_rules! impl_client_v17__getrawmempool {
226
+ macro_rules! impl_client_v17__get_raw_mempool {
227
227
( ) => {
228
228
impl Client {
229
229
pub fn get_raw_mempool( & self ) -> Result <GetRawMempool > {
@@ -239,7 +239,7 @@ macro_rules! impl_client_v17__getrawmempool {
239
239
240
240
/// Implements Bitcoin Core JSON-RPC API method `gettxout`
241
241
#[ macro_export]
242
- macro_rules! impl_client_v17__gettxout {
242
+ macro_rules! impl_client_v17__get_tx_out {
243
243
( ) => {
244
244
impl Client {
245
245
pub fn get_tx_out( & self , txid: Txid , vout: u64 ) -> Result <GetTxOut > {
@@ -251,7 +251,7 @@ macro_rules! impl_client_v17__gettxout {
251
251
252
252
/// Implements Bitcoin Core JSON-RPC API method `gettxoutproof`
253
253
#[ macro_export]
254
- macro_rules! impl_client_v17__gettxoutproof {
254
+ macro_rules! impl_client_v17__get_tx_out_proof {
255
255
( ) => {
256
256
impl Client {
257
257
pub fn get_tx_out_proof( & self , txids: & [ Txid ] ) -> Result <String > {
@@ -263,7 +263,7 @@ macro_rules! impl_client_v17__gettxoutproof {
263
263
264
264
/// Implements Bitcoin Core JSON-RPC API method `gettxoutsetinfo`
265
265
#[ macro_export]
266
- macro_rules! impl_client_v17__gettxoutsetinfo {
266
+ macro_rules! impl_client_v17__get_tx_out_set_info {
267
267
( ) => {
268
268
impl Client {
269
269
pub fn get_tx_out_set_info( & self ) -> Result <GetTxOutSetInfo > {
@@ -275,7 +275,7 @@ macro_rules! impl_client_v17__gettxoutsetinfo {
275
275
276
276
/// Implements Bitcoin Core JSON-RPC API method `preciousblock`
277
277
#[ macro_export]
278
- macro_rules! impl_client_v17__preciousblock {
278
+ macro_rules! impl_client_v17__precious_block {
279
279
( ) => {
280
280
impl Client {
281
281
pub fn precious_block( & self , hash: BlockHash ) -> Result <( ) > {
@@ -291,7 +291,7 @@ macro_rules! impl_client_v17__preciousblock {
291
291
292
292
/// Implements Bitcoin Core JSON-RPC API method `pruneblockchain`
293
293
#[ macro_export]
294
- macro_rules! impl_client_v17__pruneblockchain {
294
+ macro_rules! impl_client_v17__prune_blockchain {
295
295
( ) => {
296
296
impl Client {
297
297
/// Instructs the node to prune the blockchain up to a specified height or timestamp.
@@ -304,7 +304,7 @@ macro_rules! impl_client_v17__pruneblockchain {
304
304
305
305
/// Implements Bitcoin Core JSON-RPC API method `savemempool`
306
306
#[ macro_export]
307
- macro_rules! impl_client_v17__savemempool {
307
+ macro_rules! impl_client_v17__save_mempool {
308
308
( ) => {
309
309
impl Client {
310
310
pub fn save_mempool( & self ) -> Result <( ) > {
@@ -320,7 +320,7 @@ macro_rules! impl_client_v17__savemempool {
320
320
321
321
/// Implements Bitcoin Core JSON-RPC API method `verifychain`
322
322
#[ macro_export]
323
- macro_rules! impl_client_v17__verifychain {
323
+ macro_rules! impl_client_v17__verify_chain {
324
324
( ) => {
325
325
impl Client {
326
326
pub fn verify_chain( & self ) -> Result <VerifyChain > { self . call( "verifychain" , & [ ] ) }
@@ -330,7 +330,7 @@ macro_rules! impl_client_v17__verifychain {
330
330
331
331
/// Implements Bitcoin Core JSON-RPC API method `verifytxoutproof`
332
332
#[ macro_export]
333
- macro_rules! impl_client_v17__verifytxoutproof {
333
+ macro_rules! impl_client_v17__verify_tx_out_proof {
334
334
( ) => {
335
335
impl Client {
336
336
// `proof` is the hex-encoded proof generated by `gettxoutproof`.
0 commit comments