getClaimCondition

Calls the "getClaimConditionByTokenId" function on the contract.

Example

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

Parameters

The options for the getClaimConditionByTokenId function.

Type

let options: BaseTransactionOptions<GetClaimConditionByTokenIdParams>;

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.