일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Props
- error
- Ethereum
- blockchain
- tailwindcss
- solidity
- hardhat
- node.js
- HTML
- REACT
- 기준
- CSS
- typeScript
- web
- evm
- express.js
- middleware
- bitcoin
- CLASS
- API
- useState
- nextJS
- SSR
- built in object
- Redux
- 삶
- JavaScript
- concept
- graphQL
- Interface
- Today
- Total
ReasonJun
Ethereum : ERC1155 본문
ERC-1155 is a token standard for representing both fungible and non-fungible tokens (NFTs) on the Ethereum blockchain. It is a single standard that can be used to represent a wide variety of assets, such as game items, collectibles, and even real-world assets.
ERC-1155 tokens are identified by two values: a token ID and a balance. The token ID is a unique identifier for the type of token, while the balance is the amount of that type of token that an address holds. For example, an ERC-1155 token could represent a game item, such as a sword. The token ID would be the same for all swords, but the balance would be different for each address that holds swords.
ERC-1155 tokens can be both fungible and non-fungible. Fungible tokens are interchangeable, meaning that one token is worth the same as any other token of the same type. For example, ERC-20 tokens are fungible, as one Ether (ETH) is worth the same as any other ETH. Non-fungible tokens are not interchangeable, meaning that each token is unique. For example, an ERC-721 token that represents a collectible artwork is non-fungible, as no two artworks are exactly alike.
ERC-1155 tokens offer a number of advantages over other token standards. First, they are more efficient, as they can be used to represent a wider variety of assets. Second, they are more flexible, as they can be both fungible and non-fungible. Third, they are more secure, as they are less likely to be subject to fraud or manipulation.
ERC-1155 tokens are a powerful tool that can be used to create a wide variety of decentralized applications (dApps). They are a versatile standard that can be used to represent a wide range of assets, and they offer a number of advantages over other token standards.
Here are some of the benefits of using ERC-1155 tokens:
- Efficiency: ERC-1155 tokens are more efficient than other token standards, as they can be used to represent a wider variety of assets. For example, a single ERC-1155 contract could be used to represent all of the items in a game, such as weapons, armor, and potions. This would save gas and storage space, as it would not be necessary to create a separate contract for each item.
- Flexibility: ERC-1155 tokens are more flexible than other token standards, as they can be both fungible and non-fungible. This makes them ideal for representing a wide range of assets. For example, an ERC-1155 token could be used to represent both fungible assets, such as game currency, and non-fungible assets, such as unique game items.
- Security: ERC-1155 tokens are more secure than other token standards, as they are less likely to be subject to fraud or manipulation. This is because ERC-1155 tokens use a more robust approval mechanism than other token standards.
Overall, ERC-1155 tokens are a powerful tool that can be used to create a wide variety of dApps. They are a versatile standard that can be used to represent a wide range of assets, and they offer a number of advantages over other token standards.
Feature | ERC-721 | ERC-1155 |
Fungibility | Non-fungible | Fungible and non-fungible |
Token ID | Single token ID per token type | Single token ID for all tokens of the same type |
Balance | Balance is not tracked | Balance is tracked for each token type |
Use cases | Collectibles, digital art, game items | Game items, in-game currency, tickets, voting rights |
Examples | CryptoKitties, Decentraland, NBA Top Shot | Enjin Coin, Gods Unchained, Decentraland |
Efficiency | Less efficient, as a separate contract is required for each token type | More efficient, as a single contract can be used to represent multiple token types |
Flexibility | Less flexible, as tokens can only be non-fungible | More flexible, as tokens can be both fungible and non-fungible |
Security | More secure, as the approval mechanism is more robust | Less secure, as the approval mechanism is less robust |
'Blockchain > Solidity' 카테고리의 다른 글
Solidity : 0.8.20 PUSH0 ( invalid opcode ) (0) | 2023.10.23 |
---|---|
Solidity : abi.encodePacked(), super.uri() (0) | 2023.10.22 |
Openzeppelin : ERC20PresetMinterPauser (0) | 2023.10.22 |
Openzeppelin : ERC721PresetMinterPauserAutoId (0) | 2023.10.22 |
Solidity : sol2uml (0) | 2023.10.20 |