useClaimerProofs
Hook to get the claimer proofs for an address for ERC20, ERC721, and ERC1155 drop contracts.
A claimer proof is a set of data about a claimer's claim condition, including the claimer's address, the claimer's proof, and the claimer's max claimable amount, price, and currency address.
Available for contracts that implement the claim conditions interface; such as NFT Drop, Edition Drop, and Token Drop.
import { useClaimerProofs } from "@thirdweb-dev/react";
const { data, isLoading, error } = useClaimerProofs(
contract,
"{{claimer_address}}",
);
Usage
Provide your Drop contract as the first argument and the claimer's address as the second argument.
import { useClaimerProofs, useContract } from "@thirdweb-dev/react";
// Your smart contract address
const contractAddress = "{{contract_address}}";
function App() {
const { contract } = useContract(contractAddress);
const {
data: proof,
isLoading,
error,
} = useClaimerProofs(contract, "{{claimer_address}}");
}