StandardErc1155 class
Standard ERC1155 NFT functions
Example
const contract = await sdk.getContract("{{contract_address}}");
await contract.edition.transfer(walletAddress, tokenId, quantity);
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(contractWrapper, storage, chainId) | Constructs a new instance of the StandardErc1155 class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| chainId | readonly | number | |
| contractWrapper | protected | ContractWrapper<T> | |
| erc1155 | Erc1155 | ||
| 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 | |
| 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.