This shows you the differences between two versions of the page.
|
fob:laboratoare:04 [2022/11/10 14:39] costin.carabas |
fob:laboratoare:04 [2022/11/10 21:22] (current) costin.carabas |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Practical Session 04. ===== | + | ===== Fungible Tokens ===== |
| - | Fungible vs Non-Fungible Tokens: | + | __Fungible vs Non-Fungible Tokens:__ |
| * Fungibility refers to an asset's ability to be exchanged for something else of equal value; | * Fungibility refers to an asset's ability to be exchanged for something else of equal value; | ||
| * Some examples of fungible assets include currencies, commodities, and precious stones; | * Some examples of fungible assets include currencies, commodities, and precious stones; | ||
| Line 42: | Line 42: | ||
| <code bash> | <code bash> | ||
| IssuanceTransaction { | IssuanceTransaction { | ||
| - | Sender: erd1sg4u62lzvgkeu4grnlwn7h2s92rqf8a64z48pl9c7us37ajv9u8qj9w8xg | + | Sender: <account address of the token manager> |
| Receiver: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u | Receiver: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u | ||
| Value: 50000000000000000 # (0.05 EGLD) | Value: 50000000000000000 # (0.05 EGLD) | ||
| GasLimit: 60000000 | GasLimit: 60000000 | ||
| Data: "issue" + | Data: "issue" + | ||
| - | "@416c696365546f6b656e73" + // "AliceTokens" hex encoded | + | "@" + <token name in hexadecimal encoding> + |
| - | "@414c43" + // "ALC" hex encoded | + | "@" + <token ticker in hexadecimal encoding> + |
| - | "@f3d7b4c0" + // 4091000000 hex encoded | + | "@" + <initial supply in hexadecimal encoding> + |
| - | "@06" // 6 hex encoded | + | "@" + <number of decimals in hexadecimal encoding> |
| } | } | ||
| </code> | </code> | ||
| Line 174: | Line 174: | ||
| The manager of an ESDT token may choose to suspend all transactions of the token, except minting, freezing/unfreezing and wiping. Check more details [[https://docs.elrond.com/tokens/esdt-tokens/#wiping |here]]. | The manager of an ESDT token may choose to suspend all transactions of the token, except minting, freezing/unfreezing and wiping. Check more details [[https://docs.elrond.com/tokens/esdt-tokens/#wiping |here]]. | ||
| - | |||
| - | ==== Non-Fungible Tokens ==== | ||
| - | |||
| - | The Elrond protocol introduces native NFT support by adding //metadata// and //attributes// on top of the already existing ESDT. This way, one can issue a semi-fungible token or a non-fungible token which is quite similar to an ESDT, but has a few more attributes, as well as an assignable URI. Once owning a quantity of a NFT/SFT, users will have their data store directly under their account, inside the trie. | ||
| - | |||
| - | Fields of an NFT/SFT: | ||
| - | * Name | ||
| - | * Quantity (for NFT must be 1) | ||
| - | * Royalties (allows creator to receive royalties for any transaction involving their NFT) | ||
| - | * Hash (of NFT metadata) | ||
| - | * Attributes (additional | ||