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
Method | Description |
---|---|
async getNFTCollections | Get supported NFT collections |
Get NFT Collections
async getNFTCollections(oktoClient: OktoClient)
retrieves the list of supported NFT collections.
Parameters
Parameter | Type | Description |
---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook |
Response
Success Response
Field Name | Type | Description |
---|---|---|
collections | Promise<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.