/api/qmail/local/identity/exists

GET

Cheap filesystem probe — returns has_id: true if the Mail wallet contains at least one .bin file under Bank/ or Fracked/.

Description

This endpoint does NOT validate the coin or load it as an identity. It is a fast existence check used by clients (or installers) to decide whether to prompt the user to import or create an identity coin.

For the actual identity content use whoami.

Parameters

None.

Response

{
  "command": "has-id",
  "success": true,
  "has_id": true
}

Errors

None.

Example

curl "http://localhost:8081/api/qmail/local/identity/exists"

Related Endpoints