getAssets

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

accountId

The ID of the account.

allPages

If true, will fetch all pages of the assets. If false, will fetch only the page specified by pageCursor.

pageCursor

The cursor to fetch the next page.

pageSize

The number of results to return per page.

order

The Order of the assets to be fetched.