get_locked_asset_balances
@mount("ft4.get_locked_asset_balances")
query get_locked_asset_balances(account_id: byte_array, types: list<text>?, page_size: integer?, page_cursor: text?): paged_result(source)
Similar to get_locked_asset_balance
, except that it allows retrieving the info for all locked assets.
Return
pagination result, where the data is a list of tuples: list<(type, 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_balance
for a query that reports all values for a single asset
get_locked_asset_aggregated_balances
for a query that reports the sum of all these values, separated by asset