zebra_state::service::read::block

Function transaction_hashes_for_block

source
pub fn transaction_hashes_for_block<C>(
    chain: Option<C>,
    db: &ZebraDb,
    hash_or_height: HashOrHeight,
) -> Option<Arc<[Hash]>>
where C: AsRef<Chain>,
Expand description

Returns the transaction::Hashes for the block with hash_or_height, if it exists in the non-finalized chain or finalized db.

The returned hashes are in block order.

Returns None if the block is not found.