zebra_state::service::read::block

Function spending_transaction_hash

Source
pub fn spending_transaction_hash<C>(
    chain: Option<C>,
    db: &ZebraDb,
    spend: Spend,
) -> Option<Hash>
where C: AsRef<Chain>,
Expand description

Returns the Hash of the transaction that spent an output at the provided transparent::OutPoint or revealed the provided nullifier, if it exists and is spent or revealed in the non-finalized chain or finalized db and its spending transaction hash has been indexed.