Skip to main content

Erc1155 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, options)Constructs a new instance of the Erc1155 class

Properties

PropertyModifiersTypeDescription
burnErc1155Burnable | undefined
contractWrapperContractWrapper<T>
dropErc1155Droppable | undefined
featureName"ERC1155"
mintErc1155Mintable | undefined
optionsSDKOptions
queryErc1155Enumerable | undefined
signatureErc1155SignatureMintable | undefined
storageIStorage

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 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.