Function getAliasesWithAddresses

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

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          timeout?: number;
      }
      • 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<Record<string, string>>

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

    Throws

    An error that occurred while processing the request.