zebra_state::service::read::address::utxo

Function chain_transparent_utxo_changes

source
fn chain_transparent_utxo_changes<C>(
    chain: Option<C>,
    addresses: &HashSet<Address>,
    finalized_tip_range: Option<RangeInclusive<Height>>,
) -> Result<(BTreeMap<OutputLocation, Output>, BTreeSet<OutputLocation>), BoxError>
where C: AsRef<Chain>,
Expand description

Returns the UTXO changes for addresses in the non-finalized chain, matching or overlapping the UTXOs for the finalized_tip_range.

If the addresses do not exist in the non-finalized chain, returns an empty list.