Docs

burnFrom

Calls the "burnFrom" function on the contract.

Example

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

Parameters

Returns

A prepared transaction object.