get Assets
suspend fun getAssets(accountId: Int, allPages: Boolean? = true, pageCursor: String? = null, pageSize: Int? = null, order: Order? = null): Result<PaginatedResponse<Asset>>
Get all assets for a specific account.
Return
A Result containing a PaginatedResponse of Asset if the assets were successfully retrieved, or an EmbeddedWalletException in case of failure.
Parameters
account Id
The ID of the account.
all Pages
If true, will fetch all pages of the assets. If false, will fetch only the page specified by pageCursor.
page Cursor
The cursor to fetch the next page.
page Size
The number of results to return per page.
order
The Order of the assets to be fetched.