Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated mint and burn transactions #759

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 3 additions & 35 deletions docs/tokens/esdt-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -427,24 +427,6 @@ The manager of an ESDT token has a number of operations at their disposal, which
On Mainnet, starting with epoch 432, global mint is disabled so one has to use local mint instead.
:::

The manager of an ESDT token can increase the total supply by sending to the Metachain a transaction of the following form:

```rust
MintTransaction {
Sender: <account address of the token manager>
Receiver: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u
Value: 0
GasLimit: 60000000
Data: "mint" +
"@" + <token identifier in hexadecimal encoding> +
"@" + <supply to mint in hexadecimal encoding>
}
```

_For more details about how arguments have to be encoded, check [here](/developers/sc-calls-format)._

Following this transaction, the total supply of tokens is increased by the new supply specified in the Data field, and the manager receives that amount of tokens into their balance.

An account with the `ESDTRoleLocalMint` role set can perform a local mint:

```rust
Expand All @@ -469,23 +451,7 @@ _For more details about how arguments have to be encoded, check [here](/develope
On Mainnet, starting with epoch 432, global burn is disabled so one has to use local burn instead.
:::

Anyone that holds an amount of ESDT tokens may burn it at their discretion, effectively losing them permanently. This operation reduces the total supply of tokens, and cannot be undone, unless the token manager mints more tokens. Burning is performed by sending a transaction to the Metachain, of the form:

```rust
BurnTransaction {
Sender: <account address of a token holder>
Receiver: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u
Value: 0
GasLimit: 60000000
Data: "ESDTBurn" +
"@" + <token identifier in hexadecimal encoding> +
"@" + <supply to burn in hexadecimal encoding>
}
```

_For more details about how arguments have to be encoded, check [here](/developers/sc-calls-format)._

Following this transaction, the token holder loses from the balance the amount of tokens specified by the Data.
Anyone that holds an amount of ESDT tokens may burn it at their discretion, effectively losing them permanently. This operation reduces the total supply of tokens, and cannot be undone, unless the token manager mints more tokens.

An account with the `ESDTRoleLocalBurn` role set can perform a local burn:

Expand All @@ -501,6 +467,8 @@ LocalBurnTransaction {
}
```

Following this transaction, the token holder loses from the balance the amount of tokens specified by the Data.

_For more details about how arguments have to be encoded, check [here](/developers/sc-calls-format)._

:::note
Expand Down
Loading