Contents

lookupAlias#

Look up the target URI registered for an alias at a taldir service.

Request:

The request arguments are a TaldirLookupRequest object.

Response:

On success, the result is a TaldirLookupResponse object. The targetUri field is absent if the alias is not registered, or if the service does not support the requested alias type.

Side effects:

Queries the taldir directory service over the network; does not change wallet state.

Expected errors:

The caller can handle the following errors inline: WALLET_ALIAS_REGISTRATION_FAILED.

interface TaldirLookupRequest {
  // Alias to look up.
  alias: string;

  // Type of the alias.
  aliasType: string;

  // Base URL of the taldir service.
  taldirBaseUrl: string;
}
interface TaldirLookupResponse {
  // Target URI registered for the alias, if any.
  targetUri?: string;
}