Skip to content

Commit

Permalink
Add comment clarifying fee rate in FundRawTransactionOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 28, 2023
1 parent 1b51e3d commit f8a1622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,9 @@ pub struct FundRawTransactionOptions {
pub include_watching: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub lock_unspents: Option<bool>,
/// 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"
Expand Down

0 comments on commit f8a1622

Please sign in to comment.