File tree Expand file tree Collapse file tree 15 files changed +46
-0
lines changed Expand file tree Collapse file tree 15 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ crate::impl_client_v17__get_received_by_address!();
126
126
crate :: impl_client_v17__get_transaction!( ) ;
127
127
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
128
128
crate :: impl_client_v17__get_wallet_info!( ) ;
129
+ crate :: impl_client_v17__import_address!( ) ;
129
130
crate :: impl_client_v17__import_privkey!( ) ;
130
131
crate :: impl_client_v17__list_address_groupings!( ) ;
131
132
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -269,6 +269,22 @@ macro_rules! impl_client_v17__get_wallet_info {
269
269
} ;
270
270
}
271
271
272
+ /// Implements Bitcoin Core JSON-RPC API method `importaddress`.
273
+ #[ macro_export]
274
+ macro_rules! impl_client_v17__import_address {
275
+ ( ) => {
276
+ impl Client {
277
+ pub fn import_address( & self , address: & Address ) -> Result <( ) > {
278
+ match self . call( "importaddress" , & [ into_json( address) ?] ) {
279
+ Ok ( serde_json:: Value :: Null ) => Ok ( ( ) ) ,
280
+ Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
281
+ Err ( err) => Err ( err. into( ) ) ,
282
+ }
283
+ }
284
+ }
285
+ } ;
286
+ }
287
+
272
288
/// Implements Bitcoin Core JSON-RPC API method `importprivkey`.
273
289
#[ macro_export]
274
290
macro_rules! impl_client_v17__import_privkey {
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ crate::impl_client_v18__get_received_by_label!();
141
141
crate :: impl_client_v17__get_transaction!( ) ;
142
142
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
143
143
crate :: impl_client_v17__get_wallet_info!( ) ;
144
+ crate :: impl_client_v17__import_address!( ) ;
144
145
crate :: impl_client_v17__import_privkey!( ) ;
145
146
crate :: impl_client_v17__list_address_groupings!( ) ;
146
147
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ crate::impl_client_v17__get_received_by_address!();
137
137
crate :: impl_client_v17__get_transaction!( ) ;
138
138
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
139
139
crate :: impl_client_v17__get_wallet_info!( ) ;
140
+ crate :: impl_client_v17__import_address!( ) ;
140
141
crate :: impl_client_v17__import_privkey!( ) ;
141
142
crate :: impl_client_v17__list_address_groupings!( ) ;
142
143
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ crate::impl_client_v17__get_received_by_address!();
134
134
crate :: impl_client_v17__get_transaction!( ) ;
135
135
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
136
136
crate :: impl_client_v17__get_wallet_info!( ) ;
137
+ crate :: impl_client_v17__import_address!( ) ;
137
138
crate :: impl_client_v17__import_privkey!( ) ;
138
139
crate :: impl_client_v17__list_address_groupings!( ) ;
139
140
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ crate::impl_client_v17__get_received_by_address!();
136
136
crate :: impl_client_v17__get_transaction!( ) ;
137
137
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
138
138
crate :: impl_client_v17__get_wallet_info!( ) ;
139
+ crate :: impl_client_v17__import_address!( ) ;
139
140
crate :: impl_client_v17__import_privkey!( ) ;
140
141
crate :: impl_client_v17__list_address_groupings!( ) ;
141
142
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ crate::impl_client_v17__get_received_by_address!();
136
136
crate :: impl_client_v17__get_transaction!( ) ;
137
137
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
138
138
crate :: impl_client_v17__get_wallet_info!( ) ;
139
+ crate :: impl_client_v17__import_address!( ) ;
139
140
crate :: impl_client_v17__import_privkey!( ) ;
140
141
crate :: impl_client_v17__list_address_groupings!( ) ;
141
142
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ crate::impl_client_v17__get_received_by_address!();
138
138
crate :: impl_client_v17__get_transaction!( ) ;
139
139
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
140
140
crate :: impl_client_v17__get_wallet_info!( ) ;
141
+ crate :: impl_client_v17__import_address!( ) ;
141
142
crate :: impl_client_v17__import_privkey!( ) ;
142
143
crate :: impl_client_v17__list_address_groupings!( ) ;
143
144
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ crate::impl_client_v17__get_received_by_address!();
135
135
crate :: impl_client_v17__get_transaction!( ) ;
136
136
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
137
137
crate :: impl_client_v17__get_wallet_info!( ) ;
138
+ crate :: impl_client_v17__import_address!( ) ;
138
139
crate :: impl_client_v17__import_privkey!( ) ;
139
140
crate :: impl_client_v17__list_address_groupings!( ) ;
140
141
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ crate::impl_client_v17__get_received_by_address!();
135
135
crate :: impl_client_v17__get_transaction!( ) ;
136
136
crate :: impl_client_v17__get_unconfirmed_balance!( ) ;
137
137
crate :: impl_client_v17__get_wallet_info!( ) ;
138
+ crate :: impl_client_v17__import_address!( ) ;
138
139
crate :: impl_client_v17__import_privkey!( ) ;
139
140
crate :: impl_client_v17__list_address_groupings!( ) ;
140
141
crate :: impl_client_v18__list_received_by_label!( ) ;
You can’t perform that action at this time.
0 commit comments