Explorer

Get NFT Collections

Learn how to retrieve NFT collections using the Okto SDK.

The getNFTCollections function retrieves information about supported NFT collections.

Note

This function is currently not supported for the following chains:

  • Base Sepolia
  • HyperEVM

Method Overview

MethodDescription
async getNFTCollectionsGet supported NFT collections

Get NFT Collections

async getNFTCollections(oktoClient: OktoClient) retrieves the list of supported NFT collections.

Parameters

ParameterTypeDescription
oktoClientOktoClientInstance of OktoClient obtained from useOkto hook

Response

Success Response

Field NameTypeDescription
collectionsPromise<NFTCollection[]>Array of NFT collections

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