pub struct TxDetails {
pub txid: Arc<Txid>,
pub sent: Arc<Amount>,
pub received: Arc<Amount>,
pub fee: Option<Arc<Amount>>,
pub fee_rate: Option<Arc<FeeRate>>,
pub balance_delta: i64,
pub chain_position: ChainPosition,
pub tx: Arc<Transaction>,
}Expand description
Details about a transaction affecting the wallet (relevant and canonical).
Fields§
§txid: Arc<Txid>The transaction id.
sent: Arc<Amount>The sum of the transaction input amounts that spend from previous outputs tracked by this wallet.
received: Arc<Amount>The sum of the transaction outputs that send to script pubkeys tracked by this wallet.
fee: Option<Arc<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<Arc<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: i64The net effect of the transaction on the balance of the wallet.
chain_position: ChainPositionThe position of the transaction in the chain.
tx: Arc<Transaction>The complete Transaction.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for TxDetails
impl<UT> ConvertError<UT> for TxDetails
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<UT> FfiConverter<UT> for TxDetails
impl<UT> FfiConverter<UT> for TxDetails
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> LiftReturn<UT> for TxDetails
impl<UT> LiftReturn<UT> for TxDetails
Source§type ReturnType = <TxDetails as Lift<UT>>::FfiType
type ReturnType = <TxDetails as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> LowerError<UT> for TxDetails
impl<UT> LowerError<UT> for TxDetails
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for TxDetails
impl<UT> LowerReturn<UT> for TxDetails
Source§type ReturnType = <TxDetails as Lower<UT>>::FfiType
type ReturnType = <TxDetails as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Auto Trait Implementations§
impl Freeze for TxDetails
impl RefUnwindSafe for TxDetails
impl Send for TxDetails
impl Sync for TxDetails
impl Unpin for TxDetails
impl UnwindSafe for TxDetails
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more