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 getUnspentAddress ( client , seed , accountIndex , addressOptions ? ) { const allUnspent = await getUnspentAddresses ( client , seed , accountIndex , { startIndex : addressOptions ?. startIndex , zeroCount : addressOptions ?. zeroCount , requiredCount : 1 } ) ; return allUnspent . length > 0 ? allUnspent [ 0 ] : undefined ; }