Struct bdk::TransactionDetails
source · pub struct TransactionDetails {
pub transaction: Option<Transaction>,
pub txid: Txid,
pub received: u64,
pub sent: u64,
pub fee: Option<u64>,
pub confirmation_time: Option<BlockTime>,
}
Expand description
A wallet transaction
Fields§
§transaction: Option<Transaction>
Optional transaction
txid: Txid
Transaction id
received: u64
Received value (sats) Sum of owned outputs of this transaction.
sent: u64
Sent value (sats) Sum of owned inputs of this transaction.
fee: Option<u64>
Fee value (sats) if confirmed.
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.
confirmation_time: Option<BlockTime>
If the transaction is confirmed, contains height and timestamp of the block containing the
transaction, unconfirmed transaction contains None
.
Trait Implementations§
source§impl Clone for TransactionDetails
impl Clone for TransactionDetails
source§fn clone(&self) -> TransactionDetails
fn clone(&self) -> TransactionDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionDetails
impl Debug for TransactionDetails
source§impl<'de> Deserialize<'de> for TransactionDetails
impl<'de> Deserialize<'de> for TransactionDetails
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more