File tree Expand file tree Collapse file tree 15 files changed +54
-0
lines changed Expand file tree Collapse file tree 15 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ crate::impl_client_v17__validate_address!();
108
108
crate :: impl_client_v17__verify_message!( ) ;
109
109
110
110
// == Wallet ==
111
+ crate :: impl_client_v17__abandon_transaction!( ) ;
111
112
crate :: impl_client_v17__add_multisig_address!( ) ;
112
113
crate :: impl_client_v17__bump_fee!( ) ;
113
114
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change 9
9
//!
10
10
//! See or use the `define_jsonrpc_minreq_client!` macro to define a `Client`.
11
11
12
+ /// Implements Bitcoin Core JSON-RPC API method `abandontransaction`.
13
+ #[ macro_export]
14
+ macro_rules! impl_client_v17__abandon_transaction {
15
+ ( ) => {
16
+ impl Client {
17
+ pub fn abandon_transaction( & self , txid: Txid ) -> Result <( ) > {
18
+ match self . call( "abandontransaction" , & [ into_json( txid) ?] ) {
19
+ Ok ( serde_json:: Value :: Null ) => Ok ( ( ) ) ,
20
+ Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
21
+ Err ( err) => Err ( err. into( ) ) ,
22
+ }
23
+ }
24
+ }
25
+ } ;
26
+ }
27
+
12
28
/// Implements Bitcoin Core JSON-RPC API method `addmultisigaddress`.
13
29
#[ macro_export]
14
30
macro_rules! impl_client_v17__add_multisig_address {
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ crate::impl_client_v17__validate_address!();
116
116
crate :: impl_client_v17__verify_message!( ) ;
117
117
118
118
// == Wallet ==
119
+ crate :: impl_client_v17__abandon_transaction!( ) ;
119
120
crate :: impl_client_v17__add_multisig_address!( ) ;
120
121
crate :: impl_client_v17__bump_fee!( ) ;
121
122
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ crate::impl_client_v17__validate_address!();
114
114
crate :: impl_client_v17__verify_message!( ) ;
115
115
116
116
// == Wallet ==
117
+ crate :: impl_client_v17__abandon_transaction!( ) ;
117
118
crate :: impl_client_v17__add_multisig_address!( ) ;
118
119
crate :: impl_client_v17__bump_fee!( ) ;
119
120
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ crate::impl_client_v17__validate_address!();
111
111
crate :: impl_client_v17__verify_message!( ) ;
112
112
113
113
// == Wallet ==
114
+ crate :: impl_client_v17__abandon_transaction!( ) ;
114
115
crate :: impl_client_v17__add_multisig_address!( ) ;
115
116
crate :: impl_client_v17__bump_fee!( ) ;
116
117
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ crate::impl_client_v17__validate_address!();
113
113
crate :: impl_client_v17__verify_message!( ) ;
114
114
115
115
// == Wallet ==
116
+ crate :: impl_client_v17__abandon_transaction!( ) ;
116
117
crate :: impl_client_v17__add_multisig_address!( ) ;
117
118
crate :: impl_client_v17__bump_fee!( ) ;
118
119
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ crate::impl_client_v17__validate_address!();
113
113
crate :: impl_client_v17__verify_message!( ) ;
114
114
115
115
// == Wallet ==
116
+ crate :: impl_client_v17__abandon_transaction!( ) ;
116
117
crate :: impl_client_v17__add_multisig_address!( ) ;
117
118
crate :: impl_client_v17__bump_fee!( ) ;
118
119
crate :: impl_client_v17__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ crate::impl_client_v17__validate_address!();
115
115
crate :: impl_client_v17__verify_message!( ) ;
116
116
117
117
// == Wallet ==
118
+ crate :: impl_client_v17__abandon_transaction!( ) ;
118
119
crate :: impl_client_v17__add_multisig_address!( ) ;
119
120
crate :: impl_client_v17__bump_fee!( ) ;
120
121
crate :: impl_client_v23__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ crate::impl_client_v17__validate_address!();
112
112
crate :: impl_client_v17__verify_message!( ) ;
113
113
114
114
// == Wallet ==
115
+ crate :: impl_client_v17__abandon_transaction!( ) ;
115
116
crate :: impl_client_v17__add_multisig_address!( ) ;
116
117
crate :: impl_client_v17__bump_fee!( ) ;
117
118
crate :: impl_client_v23__create_wallet!( ) ;
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ crate::impl_client_v17__validate_address!();
112
112
crate :: impl_client_v17__verify_message!( ) ;
113
113
114
114
// == Wallet ==
115
+ crate :: impl_client_v17__abandon_transaction!( ) ;
115
116
crate :: impl_client_v17__add_multisig_address!( ) ;
116
117
crate :: impl_client_v17__bump_fee!( ) ;
117
118
crate :: impl_client_v23__create_wallet!( ) ;
You can’t perform that action at this time.
0 commit comments