SignatureDrop class
Setup a collection of NFTs where when it comes to minting, you can authorize some external party to mint tokens on your contract, and specify what exactly will be minted by that external party..
Example
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
const sdk = new ThirdwebSDK("{{chainName}}");
const contract = await sdk.getContract(
"{{contract_address}}",
"signature-drop",
);
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(network, address, storage, options, abi, chainId, contractWrapper) | Constructs a new instance of the SignatureDrop class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
abi | Abi | ||
checkout | PaperCheckout<SignatureDropContract> | Checkout | |
claimConditions | DropClaimConditions<SignatureDropContract> | Configure claim conditions | |
contractRoles | static | readonly ["admin", "minter", "transfer"] | |
encoder | ContractEncoder<SignatureDropContract> | ||
erc721 | Erc721<SignatureDropContract> | ||
estimator | GasCostEstimator<SignatureDropContract> | ||
events | ContractEvents<SignatureDropContract> | ||
metadata | ContractMetadata<SignatureDropContract, typeof DropErc721ContractSchema> | ||
owner | ContractOwner<SignatureDropContract> | ||
platformFees | ContractPlatformFee<SignatureDropContract> | ||
revealer | DelayedReveal<SignatureDropContract> | Delayed reveal | |
roles | ContractRoles<SignatureDropContract, typeof SignatureDrop.contractRoles[number]> | ||
royalties | ContractRoyalty<SignatureDropContract, typeof DropErc721ContractSchema> | Configure royalties | |
sales | ContractPrimarySale<SignatureDropContract> | ||
signature | Erc721WithQuantitySignatureMintable | Signature Minting |
Methods
Method | Modifiers | Description |
---|---|---|
burn(tokenId) | Burn a single NFT | |
claim(quantity, options) | Claim NFTs to the connected wallet. | |
claimTo(destinationAddress, quantity, options) | Claim unique NFTs to a specific Wallet | |
createBatch(metadatas, options) | Create a batch of unique NFTs to be claimed in the future | |
getAddress() | ||
getAllClaimed(queryParams) | Get All Claimed NFTs | |
getAllUnclaimed(queryParams) | Get All Unclaimed NFTs | |
getClaimTransaction(destinationAddress, quantity, options) | Construct a claim transaction without executing it. This is useful for estimating the gas cost of a claim transaction, overriding transaction options and having fine grained control over the transaction execution. | |
isTransferRestricted() | Get whether users can transfer NFTs from this contract | |
totalClaimedSupply() | Get the claimed supply | |
totalSupply() | Get the total count NFTs in this drop contract, both claimed and unclaimed | |
totalUnclaimedSupply() | Get the unclaimed supply |
Signature:
export declare class SignatureDrop extends StandardErc721<SignatureDropContract>
Extends: StandardErc721<SignatureDropContract>