get_locked_asset_aggregated_balance
@mount("ft4.get_locked_asset_aggregated_balance")
query get_locked_asset_aggregated_balance(account_id: byte_array, asset_id: byte_array, types: list<text>?): big_integer(source)
Retrieves the total locked sum of the specified asset over various lock types, given the account that locked them. The returned value adds up the values that were locked, regardless of the lock type, for a single asset.
Return
the sum of the locked asset across the specified lock account types
Parameters
account_id
id of the account to fetch locked balances for
asset_id
id of the asset to fetch balance for
types
optional list to specify what lock account types to include balances for. If not specified, balances will be included for all lock account types.
See also
ACCOUNT_TYPE_LOCK
for more information on lock accounts
get_locked_asset_balance
for a function that reports all values separated by lock type
get_locked_asset_aggregated_balances
for a function that reports this value for all assets.