getAccounts

suspend fun getAccounts(allPages: Boolean = true, pageCursor: String? = null, pageSize: Int? = null, order: Order? = null): Result<PaginatedResponse<Account>>

Get accounts

Return

a Result with the PaginatedResponse of Account. In case of success, the data will contain the list of accounts. In case of failure an EmbeddedWalletException

Parameters

allPages

If true, will fetch all pages of the accounts. 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 accounts to be fetched