# getLockAccountsWithNonZeroBalances · FT4 TypeScript client · Chromia Docs (concept)

> getLockAccountsWithNonZeroBalances(
    connection: Connection ,
    accountId: BufferId,
): Promise< LockAccount []> Same as getLockAccounts but will only

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/asset.getLockAccountsWithNonZeroBalances/

Function

# getLockAccountsWithNonZeroBalances

* ```signature
  getLockAccountsWithNonZeroBalances(
      connection: Connection,
      accountId: BufferId,
  ): Promise<LockAccount[]>
  ```

  Same as [getLockAccounts](https://docs.chromia.com/pages/ft4-ts-client/functions/asset.getLockAccounts/) but will only return those
  lock accounts that currently have locked assets.

  #### Parameters

  + connection: [Connection](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)

    the connection to use when calling the blockchain
  + accountId: BufferId

    the id of the account for which to fetch lock accounts

  #### Returns Promise<[LockAccount](https://docs.chromia.com/pages/ft4-ts-client/types/asset.LockAccount/)[]>

  a list of lock accounts. The list will be empty in case of no lock accounts with non zero balances

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/asset.getLockAccountsWithNonZeroBalances.html)Generated API reference, mirrored from the live docs
