Skip to content

Commit 9660ba6

Browse files
committed
Add psbtbumpfee
1 parent 333d265 commit 9660ba6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

client/src/client.rs

+13
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,19 @@ pub trait RpcApi: Sized {
282282
self.call("bumpfee", handle_defaults(&mut args, &[null()])).await
283283
}
284284

285+
async fn psbt_bump_fee(
286+
&self,
287+
txid: &bitcoin::Txid,
288+
options: Option<&json::BumpFeeOptions>,
289+
) -> Result<json::BumpFeeResult> {
290+
let opts = match options {
291+
Some(options) => Some(options.to_serializable(self.version().await?)),
292+
None => None,
293+
};
294+
let mut args = [into_json(txid)?, opt_into_json(opts)?];
295+
self.call("psbtbumpfee", handle_defaults(&mut args, &[null()])).await
296+
}
297+
285298
async fn load_wallet(&self, wallet: &str) -> Result<json::LoadWalletResult> {
286299
self.call("loadwallet", &[wallet.into()]).await
287300
}

0 commit comments

Comments
 (0)