Hoppa till huvudinnehåll
JobCannon
Alla kompetenser

ERC-1155 Multi Token

⬢ NIVÅ 2Tekniskt
Hög
Lönepåverkan
2 månader
Tid att lära sig
Medel
Svårighetsgrad
—
Karriärer
I korthet

ERC-1155 is Ethereum's standard for contracts that handle both fungible (identical) and non-fungible (unique) tokens simultaneously. Instead of separate ERC-20 and ERC-721 contracts, one ERC-1155 manages thousands of token types. Used for gaming (weapons, currency, collectibles), DeFi (multiple asset pools), and enterprise (supply chain tokens). Learning takes 2-3 weeks for Solidity devs; mastery (batch operations, custom hooks, gas optimization) takes 2 months. Senior engineers command 20-30% premium designing token systems for $100M+ protocols.

Vad är ERC-1155 Multi Token

ERC-1155 is Ethereum's standard for contracts that manage multiple token types simultaneously. Unlike ERC-20 (one token per contract) and ERC-721 (one NFT per contract), ERC-1155 can handle thousands of token IDs in a single contract. Each token ID can be fungible (ERC-20-like), non-fungible (ERC-721-like), or semi-fungible (N copies of the same unique asset). A single ERC-1155 contract enables batch operations: transfer 100 token A, 50 token B, and 1 token C in one transaction. This cuts gas costs by 30-50% compared to calling separate transfer functions. The standard includes hooks (onERC1155Received) to ensure recipient contracts know how to handle incoming tokens safely.

🔧 VERKTYG & EKOSYSTEM
SolidityOpenZeppelin contractsHardhat testingWeb3.js or Ethers.jsToken standards documentationGas optimization tools

💰 Lön per region

OmrådeNybörjareMidErfaren
USA$85k$145k$220k
UK£52k£88k£135k
EU€58k€95k€145k
CANADAC$90kC$150kC$230k

❓ Vanliga frågor

When should I use ERC-1155 instead of ERC-20 + ERC-721?
ERC-1155 when you have multiple token types in same contract (e.g., game with currency, weapons, armor). Saves deployment cost (1 contract vs 10) and enables batch transfers in single transaction. ERC-20 + ERC-721 if you need them in completely separate contracts (different governance, different security models).
How do batch operations work in ERC-1155?
Standard transfer: move 100 of token ID 1 from Alice to Bob. Batch transfer: move 100 of token 1, 50 of token 2, 1 of token 3 in ONE transaction. Saves gas 30-50% vs calling transfer 3 times. Essential for user experience in games/DeFi.
What's the URI mechanism and why is it important?
Each token ID has a URI (like ipfs://xyz) pointing to metadata (name, image, description). If using on-chain URI storage, gas cost explodes. Use off-chain IPFS URIs with fallback to on-chain if needed. Implement onERC1155Received hook so contracts can accept tokens safely.
How do I prevent token ID collisions?
Assign ranges to different token categories: IDs 1-100 for currency, 101-200 for weapons, etc. Document the scheme. Or use mapping tokenIdToCategory. If upgradeable, use proxy pattern and manage carefully to avoid overwriting state.
What's the royalty standard for ERC-1155?
ERC-2981 (Royalty Standard) lets creators earn % on secondary sales. Implemented on top of ERC-1155. When trading token ID 42, contract queries royaltyInfo(42, salePrice) and returns (recipient, royaltyAmount). Marketplaces must support it to work.

Osäker på om den här kompetensen passar dig?

Gör Career Match — vi föreslår rätt spår för dig.

Hitta mina bäst passande kompetenser →

Hitta din ideala karriärväg

Kompetensbaserad matchning mot 2 521 karriärer. Gratis, ~3 minuter.

Gör Karriärmatchningen — gratis →