useClaimedNFTSupply

Hook for retrieving the total supply of NFTs claimed from an NFT Drop contract.

Available to use on contracts that implement ERC721Claimable .

Example

import {
useClaimedNFTSupply,
useContract,
} from "@thirdweb-dev/react";
function App() {
const { contract } = useContract(contractAddress);
const { data, isLoading } = useClaimedNFTSupply(contract);
}

Parameters

Returns

The hook's data property, once loaded, is a BigNumber representing the total supply of NFTs claimed from the NFT drop contract so far.