nftStatus

Retrieve all on chain info about your NFTs

Sometimes you prefer to know the most up to date information about your NFTs. This is especially true if you are using a third party marketplace to sell your NFTs or if you are using programmable NFTs. You can use the nftInfo function to retrieve all on chain information about your NFTs.

We believe nftInfo should cover most use cases.

We do not cache these results, however we aim for a response time of less than 500ms for on chain calls.

Args

tokenAddress: A required string that specifies the address of the NFT token you want to retrieve information about.

options: An optional object of type minteeOptions that specifies the network to use when retrieving the NFT information. If options is not provided, the function will default to mainnet.

Post

It is not necessary to install the npm package to easily interact with our api.

const tokenAddress = "EtNfhjfpP8N71YVFFRvMn9iFzDG1PKaSwKUcBH6LzJVR";
const url = `https://api.mintee.io/nftStatus/${tokenAddress}`;
const response = fetch(url, {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY",
  },
});
 
const nftInfo = await response.json();

If you using a GET call, pass in the address of your compressed or uncompressed NFT in the URL.

You can pass in the network as a header:

const tokenAddress = "FzLVJJG5WSHyuHWP1YXHCJ3xB7snVEEA9XTEsX5Yc6fq";
const url = `https://api.mintee.io/nftStatus/${tokenAddress}`;
const response = fetch(url, {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    network: "devnet",
  },
});
 
const nftInfo = await response.json();

Using mintee.js

typescript
import { Mintee } from "mintee.js";
 
const apiKey = "YOUR_API_KEY";
const mintee = Mintee.init({ apiKey });
 
const tokenAddress = "5SvFwK7MX3t5FR8k5rcM8eRfuBeAchFQaSxS7r3CnnXz";
const nftInfo = await mintee.nftStatus({ tokenAddress });
console.log(nftInfo);