- getChannel(payload): Promise<{
balance: string;
channelEpoch: number;
channelId: string;
closureTime: number;
destinationAddress: string;
destinationPeerId: string;
sourceAddress: string;
sourcePeerId: string;
status: "Open" | "PendingToClose" | "Closed";
ticketIndex: string;
}> Parameters
- payload: {
apiEndpoint: string | URL;
apiToken: string;
channelId: string;
timeout?: number;
}apiEndpoint: string | URL
apiToken: string
channelId: string
Optional
timeout?: number
Returns Promise<{
balance: string;
channelEpoch: number;
channelId: string;
closureTime: number;
destinationAddress: string;
destinationPeerId: string;
sourceAddress: string;
sourcePeerId: string;
status: "Open" | "PendingToClose" | "Closed";
ticketIndex: string;
}>
The API endpoint for authentication.