pub struct TxDetails {
pub txid: Txid,
pub sent: Amount,
pub received: Amount,
pub fee: Option<Amount>,
pub fee_rate: Option<FeeRate>,
pub balance_delta: SignedAmount,
pub chain_position: ChainPosition<ConfirmationBlockTime>,
pub tx: Arc<Transaction>,
}Expand description
Details about a transaction affecting the wallet (relevant and canonical).
Fields§
§txid: TxidThe transaction id.
sent: AmountThe sum of the transaction input amounts that spend from previous outputs tracked by this wallet.
received: AmountThe sum of the transaction outputs that send to script pubkeys tracked by this wallet.
fee: Option<Amount>The fee paid for the transaction. Note that to calculate the fee for a transaction with
inputs not owned by this wallet you must manually insert the TxOut(s) into the tx graph
using the insert_txout function. If those are not available, the field will be None.
fee_rate: Option<FeeRate>The fee rate paid for the transaction. Note that to calculate the fee rate for a
transaction with inputs not owned by this wallet you must manually insert the TxOut(s) into
the tx graph using the insert_txout function. If those are not available, the field will be
None.
balance_delta: SignedAmountThe net effect of the transaction on the balance of the wallet.
chain_position: ChainPosition<ConfirmationBlockTime>The position of the transaction in the chain.
tx: Arc<Transaction>The complete Transaction.