Additional comments for TransactionDetails.

Describe how fields `received` and `sent` are calculated for
`TransactionDetails`.
This commit is contained in:
志宇 2022-06-15 22:13:41 +08:00
parent b289c4ec2d
commit 77c7d0aae9
No known key found for this signature in database
GPG Key ID: F6345C9837C2BDE8

View File

@ -202,8 +202,10 @@ pub struct TransactionDetails {
pub txid: Txid,
/// Received value (sats)
/// Sum of owned outputs of this transaction.
pub received: u64,
/// Sent value (sats)
/// Sum of owned inputs of this transaction.
pub sent: u64,
/// Fee value (sats) if available.
/// The availability of the fee depends on the backend. It's never `None` with an Electrum