File tree Expand file tree Collapse file tree 15 files changed +39
-0
lines changed Expand file tree Collapse file tree 15 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ crate::impl_client_v17__sign_message!();
153
153
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
154
154
crate :: impl_client_v17__unload_wallet!( ) ;
155
155
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
156
+ crate :: impl_client_v17__wallet_lock!( ) ;
156
157
crate :: impl_client_v17__wallet_process_psbt!( ) ;
157
158
158
159
/// Argument to the `Client::get_new_address_with_type` function.
Original file line number Diff line number Diff line change @@ -669,6 +669,22 @@ macro_rules! impl_client_v17__wallet_create_funded_psbt {
669
669
} ;
670
670
}
671
671
672
+ /// Implements Bitcoin Core JSON-RPC API method `walletlock`.
673
+ #[ macro_export]
674
+ macro_rules! impl_client_v17__wallet_lock {
675
+ ( ) => {
676
+ impl Client {
677
+ pub fn wallet_lock( & self ) -> Result <( ) > {
678
+ match self . call( "walletlock" , & [ ] ) {
679
+ Ok ( serde_json:: Value :: Null ) => Ok ( ( ) ) ,
680
+ Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
681
+ Err ( err) => Err ( err. into( ) ) ,
682
+ }
683
+ }
684
+ }
685
+ } ;
686
+ }
687
+
672
688
/// Implements Bitcoin Core JSON-RPC API method `walletprocesspsbt`.
673
689
#[ macro_export]
674
690
macro_rules! impl_client_v17__wallet_process_psbt {
Original file line number Diff line number Diff line change @@ -170,4 +170,5 @@ crate::impl_client_v17__sign_message!();
170
170
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
171
171
crate :: impl_client_v17__unload_wallet!( ) ;
172
172
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
173
+ crate :: impl_client_v17__wallet_lock!( ) ;
173
174
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -167,4 +167,5 @@ crate::impl_client_v17__sign_message!();
167
167
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
168
168
crate :: impl_client_v17__unload_wallet!( ) ;
169
169
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
170
+ crate :: impl_client_v17__wallet_lock!( ) ;
170
171
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -167,4 +167,5 @@ crate::impl_client_v17__sign_message!();
167
167
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
168
168
crate :: impl_client_v17__unload_wallet!( ) ;
169
169
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
170
+ crate :: impl_client_v17__wallet_lock!( ) ;
170
171
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -167,4 +167,5 @@ crate::impl_client_v17__sign_message!();
167
167
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
168
168
crate :: impl_client_v21__unload_wallet!( ) ;
169
169
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
170
+ crate :: impl_client_v17__wallet_lock!( ) ;
170
171
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -167,4 +167,5 @@ crate::impl_client_v17__sign_message!();
167
167
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
168
168
crate :: impl_client_v21__unload_wallet!( ) ;
169
169
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
170
+ crate :: impl_client_v17__wallet_lock!( ) ;
170
171
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ crate::impl_client_v17__sign_message!();
169
169
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
170
170
crate :: impl_client_v21__unload_wallet!( ) ;
171
171
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
172
+ crate :: impl_client_v17__wallet_lock!( ) ;
172
173
crate :: impl_client_v17__wallet_process_psbt!( ) ;
173
174
174
175
/// Argument to the `Client::get_new_address_with_type` function.
Original file line number Diff line number Diff line change @@ -166,4 +166,5 @@ crate::impl_client_v17__sign_message!();
166
166
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
167
167
crate :: impl_client_v21__unload_wallet!( ) ;
168
168
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
169
+ crate :: impl_client_v17__wallet_lock!( ) ;
169
170
crate :: impl_client_v17__wallet_process_psbt!( ) ;
Original file line number Diff line number Diff line change @@ -166,4 +166,5 @@ crate::impl_client_v17__sign_message!();
166
166
crate :: impl_client_v17__sign_raw_transaction_with_wallet!( ) ;
167
167
crate :: impl_client_v21__unload_wallet!( ) ;
168
168
crate :: impl_client_v17__wallet_create_funded_psbt!( ) ;
169
+ crate :: impl_client_v17__wallet_lock!( ) ;
169
170
crate :: impl_client_v17__wallet_process_psbt!( ) ;
You can’t perform that action at this time.
0 commit comments