ERC20Burnable
Functionality available for contracts that inherit the
ERC20
and
ERC20Burnable
extensions.
Allows you to burn tokens (take them out of circulation).
burn
Burn tokens held by the connected wallet.
# The amount of this token you want to burn
amount = 1.2
tx_result = contract.erc20.burn(amount)
Configuration
burn_from
Burn tokens held by a specified wallet (requires allowance
).
# Address of the wallet sending the tokens
holder_address = "{{wallet_address}}"
# The amount of this token you want to burn
amount = 1.2
tx_result = contract.erc20.burn_from(holder_address, amount);