From f8a16224321e79c89744a97a08c0ffac03048bde Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 27 Nov 2023 23:58:18 -0800 Subject: [PATCH] Add comment clarifying fee rate in FundRawTransactionOptions --- json/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/json/src/lib.rs b/json/src/lib.rs index 3574ef1b..88bc63ec 100644 --- a/json/src/lib.rs +++ b/json/src/lib.rs @@ -1877,6 +1877,9 @@ pub struct FundRawTransactionOptions { pub include_watching: Option, #[serde(skip_serializing_if = "Option::is_none")] pub lock_unspents: Option, + /// The fee rate to pay per kvB. NB. This field is converted to camelCase + /// when serialized, so it is receeived by fundrawtransaction as `feeRate`, + /// which fee rate per kvB, and *not* `fee_rate`, which is per vB. #[serde( with = "bitcoin::amount::serde::as_btc::opt", skip_serializing_if = "Option::is_none"