Sets the claim conditions for a given token ID.
import { ClaimableERC1155 } from "thirdweb/modules"; const transaction = ClaimableERC1155.setClaimCondition({ contract: contract, tokenId: 0n, pricePerToken: "1", // in ETH maxClaimableSupply: "1000000", maxClaimablePerWallet: "1",}); await sendTransaction({ transaction, account });
function setClaimCondition( options: BaseTransactionOptions< ClaimConditionInput & { tokenId: bigint } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for setting the claim conditions.
let options: BaseTransactionOptions< ClaimConditionInput & { tokenId: bigint }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A transaction to set the claim conditions.