Skip to main content

StandardErc1155 class

Standard ERC1155 NFT functions

Example

const contract = await sdk.getContract("{{contract_address}}");
await contract.edition.transfer(walletAddress, tokenId, quantity);

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper, storage, chainId)Constructs a new instance of the StandardErc1155 class

Properties

PropertyModifiersTypeDescription
chainIdreadonlynumber
contractWrapperprotectedContractWrapper<T>
erc1155Erc1155
storageprotectedThirdwebStorage

Methods

MethodModifiersDescription
airdrop(tokenId, addresses, data)Airdrop multiple NFTs
balance(tokenId)Get NFT Balance for the currently connected wallet
balanceOf(address, tokenId)Get NFT Balance
get(tokenId)Get a single NFT Metadata
getAddress()
isApproved(address, operator)Get whether this wallet has approved transfers from the given operator
totalSupply(tokenId)Returns the total supply of a specific token
transfer(to, tokenId, amount, data)Transfer a single NFT

Signature:

export declare class StandardErc1155<T extends DropERC1155 | TokenERC1155 | BaseERC1155 = BaseERC1155 | BaseSignatureMintERC1155> implements UpdateableNetwork

Implements: UpdateableNetwork

Remarks

Basic functionality for a ERC1155 contract that handles IPFS storage for you.