zebra_state::service::read::address::balance

Function transparent_balance

source
pub fn transparent_balance(
    chain: Option<Arc<Chain>>,
    db: &ZebraDb,
    addresses: HashSet<Address>,
) -> Result<Amount<NonNegative>, BoxError>
Expand description

Returns the total transparent balance for the supplied transparent::Addresses.

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