setClaimCondition

Sets the claim conditions for a given token ID.

Example

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(
ClaimConditionInput & { tokenId: bigint }
>,

Parameters

The options for setting the claim conditions.

Type

ClaimConditionInput & { tokenId: bigint }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A transaction to set the claim conditions.