get_locked_asset_balance
@mount("ft4.get_locked_asset_balance")
query get_locked_asset_balance(account_id: byte_array, asset_id: byte_array, types: list<text>?, page_size: integer?, page_cursor: text?): paged_result(source)
Retrieves all balances of a certain asset that were locked from a certain account. Paginated, the returned data is a list of tuples containing the amount and a lock type label: list<(lock type, amount)>
Return
pagination result, where the data is a list of tuples: list<(text, amount)>
Parameters
account_id
id of the account to fetch locked balances for
asset_id
id of the asset to fetch balance for
types
the type of lock accounts to return balance for
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_aggregated_balance
for a query that reports the sum of all these values
get_locked_asset_balances
for a query that reports these values for all assets.