Erc1155 class
Standard ERC1155 NFT functions
Example
const contract = await sdk.getContract("{{contract_address}}");
await contract.erc1155.transfer(walletAddress, tokenId, quantity);
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(contractWrapper, storage, chainId) | Constructs a new instance of the Erc1155 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
chainId | readonly | number | |
claimConditions | readonly | import("./drop-erc1155-claim-conditions").DropErc1155ClaimConditions<import("../../types/eips").BaseClaimConditionERC1155> | Configure claim conditions |
contractWrapper | protected | ContractWrapper<T> | |
featureName | "ERC1155" | ||
revealer | readonly | import("./delayed-reveal").DelayedReveal<import("../../types/eips").BaseDelayedRevealERC1155> | Delayed reveal |
signature | readonly | Erc1155SignatureMintable | Signature Minting |
storage | protected | ThirdwebStorage |
Methods
Method | Modifiers | Description |
---|---|---|
airdrop(tokenId, addresses, data) | Airdrop multiple NFTs | |
balance(tokenId) | Get NFT Balance for the currently connected wallet | |
balanceOf(address, tokenId) | Get NFT Balance | |
burn(tokenId, amount) | Burn a specified amount of a NFTs | |
burnBatch(tokenIds, amounts) | Burn a batch of NFTs | |
burnBatchFrom(account, tokenIds, amounts) | Burn a batch of NFTs | |
burnFrom(account, tokenId, amount) | Burn a specified amount of a NFTs | |
claim(tokenId, quantity, options) | Claim NFTs | |
claimTo(destinationAddress, tokenId, quantity, options) | Claim NFTs to a specific Wallet | |
get(tokenId) | Get a single NFT Metadata | |
getAddress() | ||
getAll(queryParams) | Get All NFTs | |
getClaimTransaction(destinationAddress, tokenId, 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. | |
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 | |
isApproved(address, operator) | Get whether this wallet has approved transfers from the given operator | |
lazyMint(metadatas, options) | Create a batch of NFTs to be claimed in the future | |
mint(metadataWithSupply) | Mint an NFT with a limited supply | |
mintAdditionalSupply(tokenId, additionalSupply) | Increase the supply of an existing NFT | |
mintAdditionalSupplyTo(receiver, tokenId, additionalSupply) | Increase the supply of an existing NFT and mint it to a given wallet address | |
mintBatch(metadataWithSupply) | Mint Many NFTs with limited supplies | |
mintBatchTo(receiver, metadataWithSupply) | Mint Many NFTs with limited supplies | |
mintTo(receiver, metadataWithSupply) | Mint an NFT with a limited supply | |
totalCirculatingSupply(tokenId) | Get the supply of token for a given tokenId. | |
totalCount() | Get the number of NFTs minted | |
totalSupply(tokenId) | Returns the total supply of a specific token | |
transfer(to, tokenId, amount, data) | Transfer a single NFT |
Signature:
export declare class Erc1155<T extends DropERC1155 | TokenERC1155 | BaseERC1155 = BaseERC1155 | BaseSignatureMintERC1155> implements UpdateableNetwork, DetectableFeature
Implements: UpdateableNetwork, DetectableFeature
Remarks
Basic functionality for a ERC1155 contract that handles IPFS storage for you.