Skip to main content

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 = sdk.getEdition("{{contract_address}}");

Constructors

ConstructorModifiersDescription
(constructor)(network, address, storage, options, contractWrapper)Constructs a new instance of the Edition class

Properties

PropertyModifiersTypeDescription
contractAbistaticany
contractRolesstaticreadonly ["admin", "minter", "transfer"]
contractTypestatic"edition"
encoderContractEncoder<TokenERC1155>
estimatorGasCostEstimator<TokenERC1155>
eventsContractEvents<TokenERC1155>
metadataContractMetadata<TokenERC1155, typeof Edition.schema>
platformFeesContractPlatformFee<TokenERC1155>
rolesContractRoles<TokenERC1155, typeof Edition.contractRoles[number]>
royaltiesContractRoyalty<TokenERC1155, typeof Edition.schema>Configure royalties
salesContractPrimarySale<TokenERC1155>
signatureErc1155SignatureMintableSignature Minting

Methods

MethodModifiersDescription
burnTokens(tokenId, amount)Burn a specified amount of a NFT
getAll(queryParams)Get All Minted NFTs
getOwned(walletAddress)Get Owned NFTs
getTotalCount()Get the number of NFTs minted
isTransferRestricted()Get whether users can transfer NFTs from this contract
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
mintToSelf(metadataWithSupply)Mint NFT for the connected wallet

Signature:

export declare class Edition extends Erc1155<TokenERC1155>

Extends: Erc1155<TokenERC1155