The Honeycomb instance.
The arguments for creating the "Burn Currency" operation.
An object containing the "Burn Currency" operation.
const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
const holderAccount = ...; // HplHolderAccount instance
const amountToBurn = 50; // Number of tokens to burn
// Create a "Burn Currency" operation for the holder account
const operationArgs: CreateBurnCurrencyOperationArgs = {
amount: amountToBurn,
holderAccount,
};
const { operation } = await createBurnCurrencyOperation(honeycomb, operationArgs);
operation.send();
Generated using TypeDoc
Creates a "Burn Currency" operation for the given holder account, burning a specific amount of tokens from the holder account.