getOwnedNFTs

suspend fun getOwnedNFTs(blockchainDescriptor: BlockchainDescriptor? = null, ncwAccountIds: List<String>? = null, ids: List<String>? = null, collectionIds: List<String>? = null, allPages: Boolean? = true, pageCursor: String? = null, pageSize: Int? = null, sort: List<GetOwnershipTokensSort>? = null, order: Order? = null, status: TokensStatus? = null, search: String? = null, spam: TokensSpam? = null): Result<PaginatedResponse<TokenOwnershipResponse>>

Get all owned NFTs.

Return

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

Parameters

blockchainDescriptor

The blockchain descriptor of the NFT BlockchainDescriptor

ncwAccountIds

A list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided.

ids

A list of NFT IDs. Up to 100 are allowed in a single request.

collectionIds

A list of collection IDs. Up to 100 are allowed in a single request.

allPages

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

status

The status of the owned NFTs to be fetched.

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