import type { IClient } from "../models/IClient" ; import type { ISeed } from "../models/ISeed" ; import { getUnspentAddresses } from "./getUnspentAddresses" ; param client param seed param accountIndex param addressOptions param addressOptions . startIndex param addressOptions . zeroCount returns export async function getBalance ( client , seed , accountIndex , addressOptions ? ) { const allUnspent = await getUnspentAddresses ( client , seed , accountIndex , addressOptions ) ; let total = 0 ; for ( const output of allUnspent ) { total += output . balance ; } return total ; }