• Closes all open outgoing channels and redeems any pending tickets. This is a long running function and may take a more than 5 minutes to run

    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<{
        closedChannels: {
            channelStatus: "Open" | "PendingToClose" | "Closed";
            receipt: string;
        }[];
        redeemedTickets: boolean;
    }>