Skip to content

Commit f8a1622

Browse files
committed
Add comment clarifying fee rate in FundRawTransactionOptions
1 parent 1b51e3d commit f8a1622

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

json/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,6 +1877,9 @@ pub struct FundRawTransactionOptions {
18771877
pub include_watching: Option<bool>,
18781878
#[serde(skip_serializing_if = "Option::is_none")]
18791879
pub lock_unspents: Option<bool>,
1880+
/// The fee rate to pay per kvB. NB. This field is converted to camelCase
1881+
/// when serialized, so it is receeived by fundrawtransaction as `feeRate`,
1882+
/// which fee rate per kvB, and *not* `fee_rate`, which is per vB.
18801883
#[serde(
18811884
with = "bitcoin::amount::serde::as_btc::opt",
18821885
skip_serializing_if = "Option::is_none"

0 commit comments

Comments
 (0)