• Get the PeerId (Hopr address) that have this alias assigned to it.

    Parameters

    • payload: {
          alias: string;
          apiEndpoint: string | URL;
          apiToken: string;
          timeout?: number;
      }
      • alias: string
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<string>

    A promise that resolves to the peer ID associated with the alias.

    Throws

    An error that occurred while processing the request.