listOwnedAssets

suspend fun listOwnedAssets(allPages: Boolean? = true, pageCursor: String? = null, pageSize: Int? = null, sort: List<ListOwnedTokensSort>? = null, order: Order? = null, status: TokensStatus? = null, search: String? = null, spam: TokensSpam? = null): Result<PaginatedResponse<TokenOwnershipResponse>>

Returns all owned NFT assets

Return

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

Parameters

allPages

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

pageCursor

The cursor to fetch the next page.

pageSize

The size of the page.

sort

Sort by param ListOwnedTokensSort

order

Order by param Order

status

The status of the owned NFTs to be fetched. TokensStatus

search

Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name.

spam

Token ownership spam status. TokensSpam