Configure and claim ERC20 tokens

Remarks

Manage claim phases and claim ERC20 tokens that have been lazily minted.

Example

const contract = await sdk.getContract("{{contract_address}}");
await contract.token.drop.claim.to("0x...", quantity);

Hierarchy

  • Erc20Droppable

Constructors

Properties

Configure claim conditions

Remarks

Define who can claim NFTs in the collection, when and how many.

Example

const presaleStartTime = new Date();
const publicSaleStartTime = new Date(Date.now() + 60 * 60 * 24 * 1000);
const claimConditions = [
{
startTime: presaleStartTime, // start the presale now
maxClaimableSupply: 2, // limit how many mints for this presale
price: 0.01, // presale price
snapshot: ['0x...', '0x...'], // limit minting to only certain addresses
},
{
startTime: publicSaleStartTime, // 24h after presale, start public sale
price: 0.08, // public sale price
}
]);
await contract.nft.drop.claim.conditions.set(claimConditions);
contractWrapper: ContractWrapper<BaseDropERC20>
erc20: Erc20<BaseERC20 | BaseSignatureMintERC20>
storage: ThirdwebStorage<IpfsUploadBatchOptions>

Generated using TypeDoc