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