• Creates an instruction to delete a holder account from the Neon EVM program.

    This function generates a TransactionInstruction that allows a Solana wallet to remove a holder account from the Neon EVM program.

    Parameters

    • neonEvmProgram: PublicKey

      The public key of the Neon EVM program.

    • solanaWallet: PublicKey

      The public key of the Solana wallet initiating the transaction.

    • holderAccountPK: PublicKey

      The public key of the holder account to be deleted.

    Returns TransactionInstruction

    A Solana TransactionInstruction for deleting the holder account.

    const instruction = deleteHolderAccountInstruction(neonProgram, userWallet, holderAccount);
    transaction.add(instruction);