Erc20.burnFrom() method
Burn Tokens
Example
// 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);
Signature:
burnFrom(holder: string, amount: Amount): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
holder | string | |
amount | Amount |
Returns:
Promise<TransactionResult>
Remarks
Burn tokens held by the specified wallet