• Creates a "Burn Currency" operation for the given holder account, burning a specific amount of tokens from the holder account.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateBurnCurrencyOperationArgs

      The arguments for creating the "Burn Currency" operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the "Burn Currency" operation.

    Example

    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