• Get all aliases you set previously and their corresponding peer IDs.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          protocol: "udp" | "tcp";
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • protocol: "udp" | "tcp"
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<{
        ip: string;
        path: {
            Hops?: number;
            IntermediatePath?: string[];
        };
        port: number;
        protocol: "udp" | "tcp";
        target: string;
    }[]>

    An object with alias names as keys and the peerId associated with the alias.

    Throws

    An error that occurred while processing the request.