Skip to content

Commit 10b4b6c

Browse files
committed
Documentations regarding absolute_fee and fee_rate updated
Update tx_builder.rs
1 parent 1d55943 commit 10b4b6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bdk/src/wallet/tx_builder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D,
190190
}
191191

192192
/// Set an absolute fee
193+
/// The fee_absolute method refers to the absolute transaction fee in satoshis (sats).
194+
/// If anyone sets both the fee_absolute method and the fee_rate method,
195+
/// the fee_absolute value will take precedence over the fee_rate.
193196
pub fn fee_absolute(&mut self, fee_amount: u64) -> &mut Self {
194197
self.params.fee_policy = Some(FeePolicy::FeeAmount(fee_amount));
195198
self

0 commit comments

Comments
 (0)