getClaimConditionById

Calls the "getClaimConditionById" function on the contract.

Example

import { getClaimConditionById } from "thirdweb/extensions/erc20";
const result = await getClaimConditionById({
contract,
conditionId: ...,
});
function getClaimConditionById(
): Promise<{
currency: string;
maxClaimableSupply: bigint;
merkleRoot: `0x${string}`;
metadata: string;
pricePerToken: bigint;
quantityLimitPerWallet: bigint;
startTimestamp: bigint;
supplyClaimed: bigint;
}>;

Parameters

The options for the getClaimConditionById function.

Type

Returns

let returnType: Promise<{
currency: string;
maxClaimableSupply: bigint;
merkleRoot: `0x${string}`;
metadata: string;
pricePerToken: bigint;
quantityLimitPerWallet: bigint;
startTimestamp: bigint;
supplyClaimed: bigint;
}>;

The parsed result of the function call.