pub struct Utxo {
pub txid: String,
pub vout: u32,
pub value: u64,
pub confirmed: bool,
pub block_height: Option<u64>,
}Expand description
A minimal unspent-output record returned by a MempoolLookup.
Shape mirrors the mempool.space GET /api/address/{addr}/utxo element
(JSS mrc20.js:315-327, token.js:176-187): txid, vout, value
(sats), and the status.confirmed/status.block_height confirmation
fields flattened to confirmed + block_height.
Fields§
§txid: StringTransaction id funding this output (64-char hex).
vout: u32Output index within txid.
value: u64Output value in satoshis.
confirmed: boolWhether the funding tx is confirmed in a block (mempool vs chain).
block_height: Option<u64>Confirmation height; None while unconfirmed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Utxo
impl<'de> Deserialize<'de> for Utxo
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 Utxo
impl StructuralPartialEq for Utxo
Auto Trait Implementations§
impl Freeze for Utxo
impl RefUnwindSafe for Utxo
impl Send for Utxo
impl Sync for Utxo
impl Unpin for Utxo
impl UnsafeUnpin for Utxo
impl UnwindSafe for Utxo
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