Edition class
Create a collection of NFTs that lets you mint multiple copies of each NFT.
Example
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
const sdk = new ThirdwebSDK("{{chainName}}");
const contract = await sdk.getContract("{{contract_address}}", "edition");
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(network, address, storage, options, abi, chainId, contractWrapper) | Constructs a new instance of the Edition class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
abi | Abi | ||
contractRoles | static | readonly ["admin", "minter", "transfer"] | |
encoder | ContractEncoder<TokenERC1155> | ||
erc1155 | Erc1155<TokenERC1155> | ||
estimator | GasCostEstimator<TokenERC1155> | ||
events | ContractEvents<TokenERC1155> | ||
interceptor | ContractInterceptor<TokenERC1155> | ||
metadata | ContractMetadata<TokenERC1155, typeof TokenErc1155ContractSchema> | ||
owner | ContractOwner<TokenERC1155> | ||
platformFees | ContractPlatformFee<TokenERC1155> | ||
roles | ContractRoles<TokenERC1155, typeof Edition.contractRoles[number]> | ||
royalties | ContractRoyalty<TokenERC1155, typeof TokenErc1155ContractSchema> | Configure royalties | |
sales | ContractPrimarySale<TokenERC1155> | ||
signature | Erc1155SignatureMintable | Signature Minting |
Methods
Method | Modifiers | Description |
---|---|---|
burn(tokenId, amount) | Burn a specified amount of a NFT | |
getAddress() | ||
getAll(queryParams) | Get All Minted NFTs | |
getMintTransaction(receiver, metadataWithSupply) | Construct a mint transaction without executing it. This is useful for estimating the gas cost of a mint transaction, overriding transaction options and having fine grained control over the transaction execution. | |
getOwned(walletAddress) | Get Owned NFTs | |
getTotalCount() | Get the number of NFTs minted | |
isTransferRestricted() | Get whether users can transfer NFTs from this contract | |
mint(metadataWithSupply) | Mint NFT for the connected wallet | |
mintAdditionalSupply(tokenId, additionalSupply) | Increase the supply of an existing NFT and mint it to the connected wallet | |
mintAdditionalSupplyTo(to, tokenId, additionalSupply) | Increase the supply of an existing NFT and mint it to a given wallet address | |
mintBatch(metadatas) | Mint Many NFTs for the connected wallet | |
mintBatchTo(to, metadataWithSupply) | Mint Many NFTs with limited supplies | |
mintTo(to, metadataWithSupply) | Mint an NFT with a limited supply |
Signature:
export declare class Edition extends StandardErc1155<TokenERC1155>
Extends: StandardErc1155<TokenERC1155>