Lab: free tools · size first · stock scanner · crypto scanner · journal
ERC-1155 Multi-Token Standard
ERC-1155 is the Ethereum multi-token standard that supports fungible tokens, non-fungible tokens, and semi-fungible tokens within a single smart contract. Developed by Enjin, it enables batch transfers and approvals, dramatically reducing gas costs for multi-token operations compared to deploying separate ERC-20 and ERC-721 contracts.
ERC-1155 lets one smart contract manage many token types at once, both fungible and non-fungible. A game can hold gold coins, swords and a one-off legendary item in the same contract, and transfer several of them in a single transaction. It is cheaper and more flexible than deploying separate ERC-20 and ERC-721 contracts for each item, which is why it is common in gaming and editions-style NFTs.
One contract, many token IDs
Each token in an ERC-1155 contract has a number, its ID, and balances are tracked per address for each ID. ID 1 might be gold with millions of units, while ID 2 has a supply of one, which makes it an NFT. The standard includes safeBatchTransferFrom, which moves several IDs and amounts in one call, and balanceOfBatch, which reads many balances at once. Metadata can use a single link with an {id} placeholder that apps fill in with the token's number, so the contract doesn't need to store a separate link for every item.
Safety rules built in
When tokens are sent to a contract, the standard requires the sending contract to call the receiver and check that it accepts them, through onERC1155Received or onERC1155BatchReceived. If the receiver doesn't give the right answer, the transfer reverts. That stops tokens getting stuck in contracts that can't handle them. It also means the receiving contract runs its own code in the middle of a transfer, which developers have to keep in mind when guarding against reentrancy.
Approvals cut both ways
The base standard has no approval for a single token or a set amount. setApprovalForAll lets an operator manage every token you hold in that contract. Marketplaces need it to sell on your behalf. Anyone you grant it to can move the whole lot, so a request for it from a site you don't know is a red flag. Revoke old approvals you no longer use.
Games and mixed collections
Witek Radomski of Enjin co-wrote the standard, and it's the usual pick for game items and editions where many copies of one piece exist. One-of-a-kind art collections still mostly use ERC-721.