pub struct WalletTxInfo {
pub txid: Txid,
pub tx: Transaction,
pub onchain_fees: Option<Amount>,
pub balance_change: SignedAmount,
pub confirmation: Option<BlockRef>,
}Expand description
A richer wallet-transaction summary returned by the onchain transactions endpoint.
Includes the raw transaction plus its fee, the wallet’s net balance change, and confirmation status.
Fields§
§txid: Txid§tx: Transaction§onchain_fees: Option<Amount>Total fee paid by the transaction, when known. None for txs whose foreign
prevouts BDK has not indexed (e.g. inbound payments observed via the
bitcoind-rpc sync path; esplora sync always populates prevouts).
balance_change: SignedAmountNet change to the wallet’s balance: received - sent over wallet-owned outputs.
Positive for inbound, negative for outbound, zero for self-spends with no net change.
confirmation: Option<BlockRef>Some when the transaction is mined; None while still in the mempool.
Trait Implementations§
Source§impl Clone for WalletTxInfo
impl Clone for WalletTxInfo
Source§fn clone(&self) -> WalletTxInfo
fn clone(&self) -> WalletTxInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletTxInfo
impl Debug for WalletTxInfo
Source§impl<'de> Deserialize<'de> for WalletTxInfo
impl<'de> Deserialize<'de> for WalletTxInfo
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
Source§impl From<WalletTxInfo> for WalletTxInfo
impl From<WalletTxInfo> for WalletTxInfo
Source§fn from(v: WalletTxInfo) -> Self
fn from(v: WalletTxInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletTxInfo
impl RefUnwindSafe for WalletTxInfo
impl Send for WalletTxInfo
impl Sync for WalletTxInfo
impl Unpin for WalletTxInfo
impl UnsafeUnpin for WalletTxInfo
impl UnwindSafe for WalletTxInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request