Function zebra_state::service::read::address::balance::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.