getClaimParams
Get the claim parameters for a given drop
import { getClaimParams } from "thirdweb/utils"; const claimParams = await getClaimParams({ contract, to: "0x...", quantity: 1n, type: "erc1155", tokenId: 0n,});
function getClaimParams(): Promise<{ allowlistProof: OverrideProof; currency: string; data: `0x${string}`; overrides: { erc20Value: | undefined | { amountWei: bigint; tokenAddress: string }; value: bigint; }; pricePerToken: bigint; quantity: bigint; receiver: string; tokenId: undefined | bigint;}>;
The options for getting the claim parameters
let options: { from?: string; quantity: bigint; singlePhaseDrop?: boolean; to: string;} & ( | { type: "erc721" } | { tokenDecimals: number; type: "erc20" } | { tokenId: bigint; type: "erc1155" });
let returnType: Promise<{ allowlistProof: OverrideProof; currency: string; data: `0x${string}`; overrides: { erc20Value: | undefined | { amountWei: bigint; tokenAddress: string }; value: bigint; }; pricePerToken: bigint; quantity: bigint; receiver: string; tokenId: undefined | bigint;}>;
The claim parameters