ERC-1155
Multi-token standard Ethereum yang support fungible dan non-fungible dalam satu contract.
Penjelasan
Sobat Kripto, ERC-1155 dirancang oleh tim Enjin 2018 untuk gaming use case. Mengatasi limitation ERC-721 (satu kontrak per koleksi NFT) dan ERC-20 (only fungible). Satu kontrak bisa manage banyak token (1000 sword item, 50 armor, 10 unique boss drop) dengan operasi batch yang gas-efficient.
Multi-token dalam Satu Contract
Single ERC-1155 contract bisa mint banyak token ID dengan supply berbeda per ID. ID 1: sword (10.000 copies, fungible). ID 2: shield (5.000 copies). ID 999: legendary boss drop (1 copy, non-fungible). Semua dalam satu deploy. Gas cost lebih efficient untuk batch operation seperti airdrop ke ribuan player.
Use Case Gaming dan NFT
Mayoritas blockchain games pakai ERC-1155 untuk inventory. OpenSea support ERC-1155 selain ERC-721. Beberapa NFT collection generative pakai ERC-1155 untuk variant rarity. Edition NFT (multiple copy same artwork) lebih natural di ERC-1155 dari ERC-721.
Trade-off
Lebih kompleks dari ERC-721 untuk developer. Some marketplace dan tool support ERC-1155 less mature. Untuk pure 1-of-1 art collection, ERC-721 masih standard. Untuk gaming, edition art, atau dynamic supply token, ERC-1155 lebih cocok. Untuk Sobat Kripto: kalau collect NFT, cek standar contract (banyak game NFT pakai ERC-1155).