getTotalSupply(contract)

Feature

Returns the total-amount of NFTs minted. Notes: NFT contract address must be set first using setContract().

Parameters

string contract address

data of SuccessResponse

int total number of the minted NFT

example

const contractAddress = "0x07469989b2562afF5E5C3B116CD3AA5Ef814e5a1fca";

// Note: an asynchronous request.
const NFTInfo = async () => {
    const info = await mitum.nft.getTotalSupply(contractAddress);
    console.log(info.data);
};
NFTInfo();

// output
2

Last updated