Skip to main content

address_utxos

Function address_utxos 

Source
pub fn address_utxos<C>(
    network: &Network,
    chain: Option<C>,
    db: &ZebraDb,
    addresses: HashSet<Address>,
    query_height_range: RangeInclusive<Height>,
    max_entries: Option<usize>,
) -> Result<AddressUtxos, BoxError>
where C: AsRef<Chain>,
Expand description

Returns the unspent transparent outputs (UTXOs) for the supplied transparent::Addresses in query_height_range, in chain order, at most max_entries of them; and the transaction IDs for the transactions containing those UTXOs.

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

Both limits are applied to the index scan, so the work this query does is bounded by what the caller asks for, rather than by the size of the addresses’ UTXO sets.