Explorer

Get Portfolio NFT

Get the NFT portfolio of a user.

The getPortfolioNFT function retrieves the list of NFTs in the authenticated user's portfolio.

Available on

Ethereum
Ethereum
Polygon
Polygon
Avalanche
Avalanche
Arbitrum
Arbitrum
BSC
BSC
Fantom
Fantom
Linea
Linea
Metis
Metis
Optimism
Optimism
Base
Base
Polygon Amoy
Polygon Amoy

To enable these chains for your application, please configure them in the Okto Dashboard.

Not available on

Base Sepolia
Base Sepolia
HyperEVM Testnet
HyperEVM Testnet

Method Overview

MethodsDescription
async getPortfolioNFTGet the NFT portfolio of a user

Get Portfolio NFT

async getPortfolioNFT(OktoClient) returns the NFT portfolio of the user.

Parameters

ParameterTypeDescription
oktoClientOktoClientOkto client

Response

Success Response

Field NameTypeDescription
resultPromise<UserNFTBalance[]>Returns the NFT portfolio of the user

Example

Note

In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.

On this page