get_locked_asset_aggregated_balances

@mount("ft4.get_locked_asset_aggregated_balances") query get_locked_asset_aggregated_balances(account_id: byte_array, types: list<text>?, page_size: integer?, page_cursor: text?): paged_result(source)

Similar to get_locked_asset_aggregated_balance, except that it allows retrieving the info for all locked assets.

Return

pagination result, where the data is a list of tuples: list<(asset, amount)>

Parameters

account_id

id of the account to fetch locked balances for

types

optional list to specify what lock account types to include balances for. If not specified, balances will be fetched for all lock account types.

page_size

the size of the pages to retrieve

page_cursor

a pointer to where the page should start

See also

utils.paged_result

for information about pagination

ACCOUNT_TYPE_LOCK

for more information on lock accounts

get_locked_asset_balances

for a query that reports all values separated by lock type

get_locked_asset_aggregated_balance

for a query that reports the summed values for a single asset