Skip to main content

NFTCollectionImpl class

Create a collection of one-of-one NFTs.

Example

import { ThirdwebSDK } from "@thirdweb-dev/sdk";

const sdk = new ThirdwebSDK("{{chainName}}");
const contract = sdk.getNFTCollection("{{contract_address}}");

Constructors

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

Properties

PropertyModifiersTypeDescription
abitypeof ABI
contractRolesstaticreadonly ["admin", "minter", "transfer"]
encoderContractEncoder<TokenERC721>
erc721Erc721<TokenERC721>
estimatorGasCostEstimator<TokenERC721>
eventsContractEvents<TokenERC721>
metadataContractMetadata<TokenERC721, typeof TokenErc721ContractSchema>
platformFeesContractPlatformFee<TokenERC721>
rolesContractRoles<TokenERC721, typeof NFTCollectionImpl.contractRoles[number]>
royaltiesContractRoyalty<TokenERC721, typeof TokenErc721ContractSchema>Configure royalties
salesContractPrimarySale<TokenERC721>
signatureErc721WithQuantitySignatureMintableSignature Minting

Methods

MethodModifiersDescription
burn(tokenId)Burn a single NFT
getAddress()
isTransferRestricted()Get whether users can transfer NFTs from this contract
mint(metadata)Mint a unique NFT
mintBatch(metadata)Mint Many unique NFTs
mintBatchTo(walletAddress, metadata)Mint Many unique NFTs
mintTo(walletAddress, metadata)Mint a unique NFT

Signature:

export declare class NFTCollectionImpl extends StandardErc721<TokenERC721>

Extends: StandardErc721<TokenERC721>