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

> getLockedAssetAggregatedBalance(
    queryable: Queryable,
    accountId: BufferId,
    assetId: BufferId,
    types?: string[] | null,
): Promise< Amount 

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

Function

# getLockedAssetAggregatedBalance

* ```signature
  getLockedAssetAggregatedBalance(
      queryable: Queryable,
      accountId: BufferId,
      assetId: BufferId,
      types?: string[] | null,
  ): Promise<Amount>
  ```

  Fetches the locked balances of a certain asset on a certain account and
  aggregates them all to a total amount.

  #### Parameters

  + queryable: Queryable

    client to use to query the blockchain
  + accountId: BufferId

    the id of the account to fetch balances for
  + assetId: BufferId

    the id of the asset for which to fetch balances
  + types: string[] | null = null

    optionally limit the balances to a specific type

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

  #### Throws

  Throws an error if the specified asset does not exist

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