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