TEMPLATES

ERC-1155 MULTI-TOKEN

Multi-token standard for both fungible and non-fungible tokens.

OVERVIEW

ERC-1155 combines the best of ERC-20 and ERC-721 in a single contract. It can manage multiple token types, reducing gas costs and complexity for games and marketplaces.

TEMPLATE FEATURES

Mixed Token Types

Fungible and non-fungible in one contract

Batch Operations

Transfer multiple tokens in one transaction

URI Storage

Metadata for each token ID

Supply Tracking

Track total supply per token ID

USE CASES

Gaming

Weapons, armor, currency, characters

Ticketing

Event tickets with different tiers

Memberships

Access passes and subscription tokens

Rewards

Points, badges, and achievements

KEY FUNCTIONS

FunctionDescription
mint(to, id, amount, data)Mint tokens of a specific ID
mintBatch(to, ids, amounts, data)Mint multiple token types at once
balanceOf(account, id)Get balance of specific token
safeTransferFrom(...)Transfer tokens safely
safeBatchTransferFrom(...)Transfer multiple tokens

NEXT STEPS