💹(Deprecated) Token Metadata API

Get both on-chain and off-chain metadata for Solana tokens.

This is a deprecated method. Please use the new getAsset method in the DAS API for all token metadata queries.

Endpoints

  • Mainnet – https://api.helius.xyz/v0/token-metadata

  • Devnet – https://api-devnet.helius.xyz/v0/token-metadata

Token Metadata API

This Token Metadata endpoint returns all metadata associated with an account (Token/NFT), including data from the legacy token list. In a single request, you can pass up to 100 mint accounts.

Code Example

const url = "https://api.helius.xyz/v0/token-metadata?api-key=<your-key>";
const nftAddresses = [
  "BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2",
  "8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5"
]; // Monkes
const getMetadata = async () => {
  const response = await fetch(url, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      mintAccounts: nftAddresses,
      includeOffChain: true,
      disableCache: false,
    }),
  });

  const data = await response.json();
  console.log("metadata: ", data);
};

getMetadata();

Last updated