File tree Expand file tree Collapse file tree 15 files changed +43
-0
lines changed Expand file tree Collapse file tree 15 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
129
129
crate :: impl_client_v17__get_wallet_info!( ) ;
130
130
crate :: impl_client_v17__import_address!( ) ;
131
131
crate :: impl_client_v17__import_privkey!( ) ;
132
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
132
133
crate :: impl_client_v17__list_address_groupings!( ) ;
133
134
crate :: impl_client_v17__list_labels!( ) ;
134
135
crate :: impl_client_v17__list_lock_unspent!( ) ;
Original file line number Diff line number Diff line change @@ -314,6 +314,22 @@ macro_rules! impl_client_v17__import_privkey {
314
314
} ;
315
315
}
316
316
317
+ /// Implements Bitcoin Core JSON-RPC API method `importprunedfunds`.
318
+ #[ macro_export]
319
+ macro_rules! impl_client_v17__import_pruned_funds {
320
+ ( ) => {
321
+ impl Client {
322
+ pub fn import_pruned_funds( & self , raw_transaction: & str , tx_out_proof: & str ) -> Result <( ) > {
323
+ match self . call( "importprunedfunds" , & [ into_json( raw_transaction) ?, into_json( tx_out_proof) ?] ) {
324
+ Ok ( serde_json:: Value :: Null ) => Ok ( ( ) ) ,
325
+ Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
326
+ Err ( err) => Err ( err. into( ) ) ,
327
+ }
328
+ }
329
+ }
330
+ } ;
331
+ }
332
+
317
333
/// Implements Bitcoin Core JSON-RPC API method `listaddressgroupings`.
318
334
#[ macro_export]
319
335
macro_rules! impl_client_v17__list_address_groupings {
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
144
144
crate :: impl_client_v17__get_wallet_info!( ) ;
145
145
crate :: impl_client_v17__import_address!( ) ;
146
146
crate :: impl_client_v17__import_privkey!( ) ;
147
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
147
148
crate :: impl_client_v17__list_address_groupings!( ) ;
148
149
crate :: impl_client_v17__list_labels!( ) ;
149
150
crate :: impl_client_v17__list_lock_unspent!( ) ;
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
140
140
crate :: impl_client_v17__get_wallet_info!( ) ;
141
141
crate :: impl_client_v17__import_address!( ) ;
142
142
crate :: impl_client_v17__import_privkey!( ) ;
143
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
143
144
crate :: impl_client_v17__list_address_groupings!( ) ;
144
145
crate :: impl_client_v18__list_received_by_label!( ) ;
145
146
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_unconfirmed_balance!();
137
137
crate :: impl_client_v17__get_wallet_info!( ) ;
138
138
crate :: impl_client_v17__import_address!( ) ;
139
139
crate :: impl_client_v17__import_privkey!( ) ;
140
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
140
141
crate :: impl_client_v17__list_address_groupings!( ) ;
141
142
crate :: impl_client_v17__list_labels!( ) ;
142
143
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
139
139
crate :: impl_client_v17__get_wallet_info!( ) ;
140
140
crate :: impl_client_v17__import_address!( ) ;
141
141
crate :: impl_client_v17__import_privkey!( ) ;
142
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
142
143
crate :: impl_client_v17__list_address_groupings!( ) ;
143
144
crate :: impl_client_v17__list_labels!( ) ;
144
145
crate :: impl_client_v18__list_received_by_label!( ) ;
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
139
139
crate :: impl_client_v17__get_wallet_info!( ) ;
140
140
crate :: impl_client_v17__import_address!( ) ;
141
141
crate :: impl_client_v17__import_privkey!( ) ;
142
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
142
143
crate :: impl_client_v17__list_address_groupings!( ) ;
143
144
crate :: impl_client_v18__list_received_by_label!( ) ;
144
145
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
141
141
crate :: impl_client_v17__get_wallet_info!( ) ;
142
142
crate :: impl_client_v17__import_address!( ) ;
143
143
crate :: impl_client_v17__import_privkey!( ) ;
144
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
144
145
crate :: impl_client_v17__list_address_groupings!( ) ;
145
146
crate :: impl_client_v18__list_received_by_label!( ) ;
146
147
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
138
138
crate :: impl_client_v17__get_wallet_info!( ) ;
139
139
crate :: impl_client_v17__import_address!( ) ;
140
140
crate :: impl_client_v17__import_privkey!( ) ;
141
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
141
142
crate :: impl_client_v17__list_address_groupings!( ) ;
142
143
crate :: impl_client_v18__list_received_by_label!( ) ;
143
144
crate :: impl_client_v17__list_labels!( ) ;
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ crate::impl_client_v17__get_unconfirmed_balance!();
138
138
crate :: impl_client_v17__get_wallet_info!( ) ;
139
139
crate :: impl_client_v17__import_address!( ) ;
140
140
crate :: impl_client_v17__import_privkey!( ) ;
141
+ crate :: impl_client_v17__import_pruned_funds!( ) ;
141
142
crate :: impl_client_v17__list_address_groupings!( ) ;
142
143
crate :: impl_client_v18__list_received_by_label!( ) ;
143
144
crate :: impl_client_v17__list_labels!( ) ;
You can’t perform that action at this time.
0 commit comments