getCollection

:paperclip: Contextualizing getCollection

  • getCollection retrieves detailed information about an NFT collection based upon its contract address and chain ID. It takes the following path parameters:

    • chainId - integer.
    • contractAddress - string.

Query example

const Axios = require("axios");

const projectUuId = 'Your Project Id';
const projectKey = 'Your Project Client Or Server Key';
const chainId = 5; // Goerli
const baseUrl = 'https://api-market.particle.network';
const contractAddress = '0xE860aE9379B1902DC08F67F50de7b9CC066AF0FF';
const url = `${baseUrl}/chains/${chainId}/contractAddress/${contractAddress}`;

(async () => {
    const response = await Axios.get(url, {
        params: {
            projectUuid,
            projectKey,
        },
    });

    console.log(JSON.stringify(response.data));
})();
Language
Click Try It! to start a request and see the response here!