getClaimCondition

Calls the "getClaimCondition" function on the contract.

Example

import { ClaimableERC721 } from "thirdweb/modules";
const result = await ClaimableERC721.getClaimCondition({
contract,
});
function getClaimCondition(
): Promise<{
allowlistMerkleRoot: `0x${string}`;
auxData: string;
availableSupply: bigint;
currency: string;
endTimestamp: number;
maxMintPerWallet: bigint;
pricePerUnit: bigint;
startTimestamp: number;
}>;

Parameters

The options for the getClaimCondition function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<{
allowlistMerkleRoot: `0x${string}`;
auxData: string;
availableSupply: bigint;
currency: string;
endTimestamp: number;
maxMintPerWallet: bigint;
pricePerUnit: bigint;
startTimestamp: number;
}>;

The parsed result of the function call.