• This function creates a CreateDeleteProfile operation using the specified Honeycomb instance and the provided arguments. The operation is used to delete an existing profile from the associated HoneycombProject.

    The function calculates the DID data public key using the user's address and the DID_SOL_PROGRAM.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation for profile deletion.

    Example

    const honeycomb = new Honeycomb(connection);
    const profile = await honeycomb.identity().profile();

    // Create CreateDeleteProfile operation.
    const operationArgs: CreateDeleteProfileOperationnArgs = {
    profile: profile,
    };
    const { operation } = await createDeleteProfileOperation(honeycomb, operationArgs);

    // Execute the operation.
    await operation.send();
    console.log("Profile deleted successfully.");

Generated using TypeDoc