Contents

deleteContact#

Delete a contact from the wallet’s contact list.

Request:

The request arguments are a DeleteContactRequest object.

Response:

On success, the result is an empty object.

Side effects:

Deletes the contact from the wallet’s contact list and emits a contact-deleted notification.

Details:

Only the alias and aliasType fields of the given contact are used to identify the contact to delete; the remaining fields are ignored. Deleting a contact that does not exist is not an error.

interface DeleteContactRequest {
  // The contact to delete.
  contact: ContactEntry;
}