zebra_state::service::read::block

Function unspent_utxo

source
pub fn unspent_utxo<C>(
    chain: Option<C>,
    db: &ZebraDb,
    outpoint: OutPoint,
) -> Option<Utxo>
where C: AsRef<Chain>,
Expand description

Returns the Utxo for transparent::OutPoint, if it exists and is unspent in the non-finalized chain or finalized db.