• Creates a "Mint Currency" operation to mint new currency tokens and add them to the specified holder account.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateMintCurrencyOperationArgs

      The arguments for creating the "Mint Currency" operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the "Mint Currency" operation.

    Example

    const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
    const currency = ...; // HplCurrency instance
    const holderAccount = ...; // HplHolderAccount instance
    const amount = 100; // Amount to mint

    // Create a "Mint Currency" operation for the holder account and amount
    const operationArgs: CreateMintCurrencyOperationArgs = {
    holderAccount,
    amount,
    };
    const { operation } = await createMintCurrencyOperation(honeycomb, operationArgs);
    operation.send();

Generated using TypeDoc