burnFrom

Prepares a transaction to call the "burnFrom" function on the contract.

Example

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

Parameters

Returns

A prepared transaction object.