APIs & SDKs
Log In
APIs & SDKs

getTokenActivities

⚓ Contextualizing getTokenActivities

  • Alike getCollectionActivities, getTokenActivities returns the activities (mints, transfers, etc.) associated with a given token (NFT). It takes the following path parameters:

    • chainId - integer.

    • contractAddress - string.

    • tokenId - string.

    And the following query parameters:

    • page - integer, 1 by default.

    • limit - integer, 100 by default.


Query example

const Axios = require("axios");

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

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

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