💹
Token Metadata API
Returns metadata for a list of given token mint addresses. Common mints are internally cached for optimized performance.
You can pass up to 100 mint accounts.
Use https://api-devnet.helius.xyz/v0/token-metadata for devnet metadata
Oops, something is missing.
We could not find the original source to display this content.
Arguably the most interesting parts of the NFT such as image URL and attributes/traits are stored on the metadata. The NFT metadata endpoint can be used to either bulk fetch multiple NFTs' metadata or a single one. Some example use cases:
- NFT Photo Gallery
- Rarity calculator/analysis
- Dynamic/evolving NFTs
getMetadata.js
const axios = require('axios')
const url = "https://api.helius.xyz/v0/token-metadata?api-key=<your-key>"
const nftAddresses = [
"BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2",
"8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5"
] // Monkes
const getMetadata = async () => {
const { data } = await axios.post(url, {
mintAccounts: nftAddresses,
includeOffChain: true,
disableCache: false,
});
console.log("metadata: ", data);
};
getMetadata();
Oops, something is missing.
We could not find the original source to display this content.
Last modified 8d ago