Function getOutgoingChannels

  • Gets the outgoing channels with optional status filter.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          status?: "Open" | "PendingToClose" | "Closed" | "WaitingForCommitment";
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional status?: "Open" | "PendingToClose" | "Closed" | "WaitingForCommitment"
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<{
        balance: string;
        id: string;
        peerAddress: string;
        status: "Open" | "PendingToClose" | "Closed";
    }[]>

    An array of outgoing channels matching the status filter.