pub struct TxInfo {
pub txid: String,
pub vout: Vec<TxOut>,
pub confirmed: bool,
pub block_height: Option<u64>,
}Expand description
Minimal view of a transaction returned by MempoolLookup::tx.
Mirrors mempool.space GET /api/tx/{txid} (JSS token.js:270-275):
the vout array (for scriptpubkey lookup) and the confirmation
status.
Fields§
§txid: StringTransaction id (64-char hex).
vout: Vec<TxOut>The transaction’s outputs, indexed by vout.
confirmed: boolWhether the tx is confirmed in a block.
block_height: Option<u64>Confirmation height; None while unconfirmed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxInfo
impl<'de> Deserialize<'de> for TxInfo
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
impl Eq for TxInfo
impl StructuralPartialEq for TxInfo
Auto Trait Implementations§
impl Freeze for TxInfo
impl RefUnwindSafe for TxInfo
impl Send for TxInfo
impl Sync for TxInfo
impl Unpin for TxInfo
impl UnsafeUnpin for TxInfo
impl UnwindSafe for TxInfo
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