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
...
function burnFrom(
BurnFromParams | { asyncParams: () => Promise<BurnFromParams> }
>,

Parameters

The options for the "burnFrom" function.

Type

BurnFromParams | { asyncParams: () => Promise<BurnFromParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.