pub struct WalletTxInfo {
pub txid: Txid,
pub tx: Transaction,
pub onchain_fees: Option<Amount>,
pub balance_change: SignedAmount,
pub confirmation: Option<BlockRef>,
pub is_cpfp: bool,
}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.
is_cpfp: booltrue when this tx spends a P2A fee anchor output — i.e. it is a CPFP
child bumping its parent. In bark this typically means the wallet is
fee-bumping an exit transaction.
Trait Implementations§
Source§impl Clone for WalletTxInfo
impl Clone for WalletTxInfo
Source§fn clone(&self) -> WalletTxInfo
fn clone(&self) -> WalletTxInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl From<WalletTxInfo> for WalletTxInfo
impl From<WalletTxInfo> for WalletTxInfo
Source§fn from(v: WalletTxInfo) -> Self
fn from(v: WalletTxInfo) -> Self
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
T in a tonic::Request