useUnclaimedNFTs
Hook for fetching information about all NFTs that haven't been claimed yet from an NFT Drop contract.
Available to use on contracts that implement the ERC721LazyMintable interface.
import { useUnclaimedNFTs } from "@thirdweb-dev/react";
const { data, isLoading, error } = useUnclaimedNFTs(contract);
Usage
Provide your contract instance as the first argument.
import { useUnclaimedNFTs, useContract } from "@thirdweb-dev/react";
// Your smart contract address
const contractAddress = "{{contract_address}}";
function App() {
const { contract } = useContract(contractAddress);
const { data, isLoading, error } = useUnclaimedNFTs(contract);
}