Skip to main content

ERC20 - Burn Tokens

You can utilize these features of the SDK if your contract implements the ERC20Burnable interface.

Burn Tokens

Burn tokens held by the specified wallet

// The amount of this token you want to burn
const amount = 1.2;

await contract.erc20.burn(amount);

This snippet is for v3 of the SDK. Learn how to upgrade.

View in React SDK Documentation

Burn Tokens

Burn tokens held by the connected wallet

// Address of the wallet sending the tokens
const holderAddress = "{{wallet_address}}";

// The amount of this token you want to burn
const amount = 1.2;

await contract.erc20.burnFrom(holderAddress, amount);

This snippet is for v3 of the SDK. Learn how to upgrade.

View in React SDK Documentation