ERC-20, Existing token designs would require a multi-step process to achieve something called an atomic swap, exchanging one kind of token for another without an intermediary.
Imagine checking out your groceries at the store and having to buy each item in your cart separately.
Swiping your credit card, bagging a single loaf of bread, receiving a small receipt, before continuing with the apples, getting another receipt, and so on.
ERC-1155 is the only token standard that enables you to create every type of asset, from currency and real estate to digital art and gaming items.
In ERC-1155, you can send any number of items to one or multiple recipients in a single transaction. This reduces gas and congestion on the Ethereum transaction pool (and saves you money!)
The transfer, approve, melt, and trade functions all take arrays as parameters, which let you perform between 100–200 such operations in a single transaction.
To transfer a single item, just supply each array with a single element. To transfer two items, use two elements, and so on.
The ERC-1155 standard is the culmination of a year of hard work by the blockchain community. If you are planning on implementing ERC-1155
Finally, we’d all like to extend our gratitude to the amazing Ethereum community and thank everyone who participated with their feedback to finalize the new ERC-1155 Multi Token Standard!
SOURCE : decrypt enjin.io sandbox-game
#NFTs #ERC-1155 #WEB3