Retrieves the claim merkle proof for the provided address.
import { fetchProofsERC721 } from "thirdweb/extensions/airdrop";import { getContract, defineChain } from "thirdweb"; const NFT = getContracct({ client, chain: defineChain(1), address: "0x...",}); const merkleRoot = await tokenMerkleRoot({ contract: NFT, tokenAddress: NFT.address,}); const proof = await fetchProofsERC721({ contract: NFT, recipient: "0x...", merkleRoot,});
function fetchProofsERC721(options: { contract: Readonly; merkleRoot: string; recipient: string;}): Promise<null | ClaimProofERC721>;
let options: { contract: Readonly; merkleRoot: string; recipient: string;};
let returnType: Promise<null | ClaimProofERC721>;
A promise that resolves to the proof or null if the recipient is not in the allowlist