setClaimCondition

Sets the claim conditions for a given token ID.

Example

import { ClaimableERC721 } from "thirdweb/modules";
const transaction = ClaimableERC721.setClaimCondition({
contract: contract,
pricePerToken: "1", // in ETH
maxClaimableSupply: "1000000",
maxClaimablePerWallet: "1",
});
await sendTransaction({ transaction, account });
function setClaimCondition(
options: BaseTransactionOptions<ClaimConditionInput>,

Parameters

The options for setting the claim conditions.

Type

let options: BaseTransactionOptions<ClaimConditionInput>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A transaction to set the claim conditions.