Skip to main content

sdk.erc20base.burn

Home > @openformat/sdk > ERC20Base > burn

ERC20Base.burn() method

Burns a specified amount of tokens from the account of the sender.

burn

Signature:

burn(params: ERC20BurnParams): Promise<ContractReceipt>;

Parameters

ParameterTypeDescription
paramsERC20BurnParams

Returns:

Promise<ContractReceipt>

{Promise<ContractReceipt>} - A promise that resolves to the Ethereum transaction receipt object.

Exceptions

{Error} - Throws an error if an error occurs while processing the transaction, with the corresponding error message.