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
To enable these chains for your application, please configure them in the Okto Dashboard.
Not available on
Example
import { getPortfolioNFT } from "@okto_web3/core-js-sdk/explorer";
const portfolioNFT = await getPortfolioNFT(oktoClient); Method Overview
| Methods | Description |
|---|---|
async getPortfolioNFT | Get the NFT portfolio of a user |
Get Portfolio NFT
async getPortfolioNFT(OktoClient) returns the NFT portfolio of the user.
Parameters
| Parameter | Type | Description |
|---|---|---|
oktoClient | OktoClient | Okto client |
Response
Success Response
| Field Name | Type | Description |
|---|---|---|
result | Promise<UserNFTBalance[]> | Returns the NFT portfolio of the user |
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.