Skip to main content

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

ParameterTypeDescription
holderstring
amountAmount

Returns:

Promise<TransactionResult>

Remarks

Burn tokens held by the specified wallet