NFT Collections

NFT Collections

The Collections API allows you to retrieve basic information about an NFT collection or discover trending collections on Lootex.


Core Functions

Get a Single Collection’s Basic Info

To fetch the basic information of a collection, specify its collection slug in the format:

${chainShortName}:${contractAddress}

For example, to get info for contract 0xfc8e7bda94874f6baa591dd70af0fda1fca201ab on Soneium:

import { lootexApiClient } from './config';
 
await lootexApiClient.collections.getCollection('soneium:0xfc8e7bda94874f6baa591dd70af0fda1fca201ab');

Get NFTs from a Single Collection

You can query assets from a specific collection using the collectionSlugs field. See NFT Assets for details.