• This function creates an InitPublicInfo operation using the specified Honeycomb instance and the provided arguments. The operation is used to initialize the public info account for a specific program in the Honeycomb ecosystem.

    The function calculates the program data public key and public info public key using the provided parameters. It also generates the necessary instructions for the operation, including authority and program data.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation.

    Example

    const honeycomb = new Honeycomb(connection);

    // Create InitPublicInfo operation with specified arguments.
    const operationArgs: CreateInitPublicInfoOperationArgs = {
    env: "main", // Specify the environment for the operation.
    programId: customProgramId, // Optional custom program ID (if different from the default).
    };
    const { operation } = await createInitPublicInfoOperation(honeycomb, operationArgs);
    operation.send(); // The generated InitPublicInfo operation.

Generated using TypeDoc