• This function creates a CreateCreateProject operation using the specified Honeycomb instance and the provided arguments. The operation is used to create a new HoneycombProject with the specified configurations and profile data settings.

    The function generates a new random public key as the project key, which will be used as a seed for the project's public keys. It then calculates the project public key using the generated key and the program ID.

    Additionally, the function creates individual AddRemoveProfileDataConfig operations for each profile data configuration in the args.profileDataConfigs array and adds them to the overall operation.


    Returns Promise<{
        operation: Operation;
        project: web3.PublicKey;

    An object containing the operation and the project public key.


    const honeycomb = new Honeycomb(connection);

    // Define the CreateProjectArgs with desired project configurations.
    const createProjectArgs: CreateProjectArgs = {
    name: "My Honeycomb Project",
    expectedMintAddresses: 0,

    // Define the profile data configurations for the project.
    const profileDataConfigs = [
    { label: "Email", dataType: { __kind: "SingleValue" } },

    // Create CreateCreateProject operation.
    const operationArgs: CreateCreateProjectOperationArgs = {
    args: {
    profileDataConfigs: profileDataConfigs,
    const { operation, project } = await createCreateProjectOperation(honeycomb, operationArgs);

    // Execute the operation.
    await operation.send();
    console.log("Project created:", project); // The public key of the newly created project.

Generated using TypeDoc