Struct bdk::TransactionDetails [−][src]
pub struct TransactionDetails {
pub transaction: Option<Transaction>,
pub txid: Txid,
pub received: u64,
pub sent: u64,
pub fee: Option<u64>,
pub confirmation_time: Option<ConfirmationTime>,
pub verified: bool,
}
Expand description
A wallet transaction
Fields
transaction: Option<Transaction>
Optional transaction
txid: Txid
Transaction id
received: u64
Received value (sats)
sent: u64
Sent value (sats)
fee: Option<u64>
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.
confirmation_time: Option<ConfirmationTime>
If the transaction is confirmed, contains height and timestamp of the block containing the
transaction, unconfirmed transaction contains None
.
verified: bool
Whether the tx has been verified against the consensus rules
Confirmed txs are considered “verified” by default, while unconfirmed txs are checked to
ensure an unstrusted Blockchain
backend can’t trick the
wallet into using an invalid tx as an RBF template.
The check is only perfomed when the verify
feature is enabled.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransactionDetails
impl Send for TransactionDetails
impl Sync for TransactionDetails
impl Unpin for TransactionDetails
impl UnwindSafe for TransactionDetails
Blanket Implementations
Mutably borrows from an owned value. Read more