From: Riccardo Casatta Date: Mon, 12 Jul 2021 08:06:08 +0000 (+0200) Subject: [docs] clarify when the fee could be unknown X-Git-Tag: 0.10.0~19^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/encode/static/gitweb.js?a=commitdiff_plain;h=a6ce75fa2d560ebe7e8fd9895cadc611d42fb290;p=bdk [docs] clarify when the fee could be unknown --- diff --git a/src/types.rs b/src/types.rs index ab635ee1..ddd498aa 100644 --- a/src/types.rs +++ b/src/types.rs @@ -160,7 +160,10 @@ pub struct TransactionDetails { pub received: u64, /// Sent value (sats) pub sent: u64, - /// Fee value (sats) if available + /// Fee value (sats) if available. + /// The availability of the fee depends on the backend. It's never `None` with an Electrum + /// Server backend, but it could be `None` with a Bitcoin RPC node without txindex that receive + /// funds while offline. pub fee: Option, /// If the transaction is confirmed, contains height and timestamp of the block containing the /// transaction, unconfirmed transaction contains `None`.