ERC20Burnable
Functionality available for contracts that implement the
IERC20
and
IBurnableERC20
interfaces.
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
const amount = 1.2;
const txResult = await contract.erc20.burn(amount);
Configuration
burnFrom
Burn tokens held by a specified wallet (requires allowance
).
// Address of the wallet sending the tokens
const holderAddress = "{{wallet_address}}";
// The amount of this token you want to burn
const amount = 1.2;
const txResult = await contract.erc20.burnFrom(holderAddress, amount);