Erc1155 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, options) | Constructs a new instance of the Erc1155 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
burn | Erc1155Burnable | undefined | ||
contractWrapper | ContractWrapper<T> | ||
drop | Erc1155Droppable | undefined | ||
featureName | "ERC1155" | ||
mint | Erc1155Mintable | undefined | ||
options | SDKOptions | ||
query | Erc1155Enumerable | undefined | ||
signature | Erc1155SignatureMintable | undefined | ||
storage | IStorage |
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 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.