• Creates a "Create Holder Account" operation for the given owner and currency, creating a new holder account and token account for the specified currency.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateCreateHolderAccountOperationArgs

      The arguments for creating the "Create Holder Account" operation.

    Returns Promise<{
        holderAccount: web3.PublicKey;
        operation: Operation;
    }>

    An object containing the "Create Holder Account" operation and the holder account address.

    Example

    const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
    const currency = ...; // HplCurrency instance
    const ownerPublicKey = ...; // Owner's public key

    // Create a "Create Holder Account" operation for the owner and currency
    const operationArgs: CreateCreateHolderAccountOperationArgs = {
    currency,
    owner: ownerPublicKey,
    };
    const { operation } = await createCreateHolderAccountOperation(honeycomb, operationArgs);
    operation.send();

Generated using TypeDoc