getAddresses

suspend fun getAddresses(accountId: Int, assetId: String, allPages: Boolean? = true, pageCursor: String? = null, pageSize: Int? = null, order: Order? = null): Result<PaginatedResponse<AddressDetails>>

Returns a paginated response of the addresses for a given vault account and asset.

Return

A Result containing a PaginatedResponse of AddressDetails if the address were successfully retrieved, or an EmbeddedWalletException in case of failure.

Parameters

accountId

The ID of the account to return

assetId

The ID of the asset

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.