get https://api-market.particle.network/chains//contractAddress//tokens/
📄 Understanding getToken
getToken
-
getToken
returns detailed information about a specific token (NFT) within a collection. It takes the following path parameters:-
chainId
- integer. -
contractAddress
- string. -
tokenId
- string.
And the following query parameters:
forceUpdate
- Boolean. It forces the metadata of the token to refresh if set totrue
.
-
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}`;
(async () => {
const response = await axios.get(url, {
params: {
projectUuid,
projectKey,
forceUpdate: 'true',
},
});
console.log(JSON.stringify(response.data));
})();