Docs

burn

Calls the "burn" function on the contract.

Example

import { burn } from "thirdweb/extensions/erc20";
const transaction = burn({
contract,
amount: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.