• This function creates a DeleteWallet operation using the specified Honeycomb instance and the provided arguments. The operation is used to delete a wallet from the associated HoneycombProject. If the wallet has self authority, it can be deleted directly, otherwise, it must be removed as an authorized delegate first before it can be deleted.

    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 wallet deletion.

    Example

    const honeycomb = new Honeycomb(connection);

    // Create DeleteWallet operation.
    const operationArgs: CreateDeleteWalletOperationArgs = {
    wallet: publicKey,
    };
    const { operation } = await createDeleteWalletOperation(honeycomb, operationArgs);

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

Generated using TypeDoc