Erc20Burnable.from() 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.token.burn.from(holderAddress, amount);
Signature:
from(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