• Parameters

    • payload: {
          address: string;
          apiEndpoint: string | URL;
          apiToken: string;
          direction?: "outgoing" | "incoming";
          timeout?: number;
      }
      • address: string
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional direction?: "outgoing" | "incoming"
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<{
        balance: string;
        channelEpoch: number;
        channelId: string;
        closureTime: number;
        destination: string;
        source: string;
        status: string;
        ticketIndex: number;
    }>