Create a Standard ERC-1155 Multi-token

WP Smart Contracts
3 min readMar 30, 2022

--

In previous articles we have covered different issues of creating NFT tokens and NFT markets, but all have been based on the ERC-721 standard, in this article we are going to introduce the ERC-1155 Standard.

What is the ERC-1155 Standard

ERC1155 is a token standard that takes the best from previous standards to create both fungible or non-fungible tokens, this approach is intended to avoid duplication and create gas-efficient smart contracts.

ERC1155 draws ideas from all of ERC20, ERC721, and ERC777. If you’re unfamiliar with those standards, head to their guides before moving on.

Initially it was implemented for multiple different types of tokens in gaming platforms, however in practice its most popular use has been to create collections of non-fungible tokens (NFTs) with the ability to handle multiple copies of the same item.

In this way, multiple NFT collectors can have one or more copies of the same item and trade them separately.

Yuzu Smart Contract

The YUZU smart contract is an implementation of the ERC-1155 multi-token standard, based on OpenZeppelin implementation.

Yuzu Features

  • Multiple Tokens Support. A single deployed contract may include any combination of fungible tokens and/or non-fungible tokens
  • Batch minting support. You can mass mint to reduce the number of transactions by creating bulk amounts of NFTs.
  • Multiple owners can have one or multiple items. Non Fungible Tokens (NFT) are ownable by multiple users
  • Owners can transfer NFTs to any account. Accounts owning an item can transfer them to any other account
  • Authorized accounts can create (mint) new items. Depending on the setting only contract owners or anyone can mint new NFT items
  • Metadata support for name, symbol and attributes. The metadata extension includes name, symbol and a TokenURI with all the attributes of the NFT
  • Image, video and animations support for NFT media.
  • Support attributes and taxonomies.
  • Burn support.

How to create a ERC-1155 Smart Contract

Broadly speaking, the steps to create a YUZU smart contract are:

Batch Minting

Learn how to create a standard ERC-1155 Smart Contract and run the batch-minting functionality.

Learn how to easily create thousands of NFTs in a Collection

The Collection

YUZU ERC-1155 Demo Collection

Take a look at the YUZU Demo Collection here:

One thing to notice is the difference between the owners section in a ERC-721 and in ERC-1155, given that one item can have many owners, you can see this:

Multiple owners per item

This sample item have 4 owners.

Take a look:

https://demo.wpsmartcontracts.com/nft/icon-011/

ERC-1155 Collections in OpenSea

In case you are wondering if the Yuzu Smart Contract is compatible with OpenSea, the answer is YES.

You can browse the sample ERC-1155 Collection in OpenSea Testnet:

https://testnets.opensea.io/collection/yuzu-demo

More information

For more details please visit:

WP Smart Contracts Home Page

YUZU Smart Contract

Yuzu Documentation

--

--

No responses yet