refreshCollectionMetadata

:twisted-rightwards-arrows: Understanding refreshCollectionMetadata

  • refreshCollectionMetadata will re-query and save collection metadata if recent changes have been made or the information is outdated. 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}/refresh`;

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

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