- getPeer(payload): Promise<{
announcedSources: {
multiaddress: string;
origin: "chain" | "dht";
}[];
incomingChannel?: null | {
balance: string;
id: string;
status: string;
};
observed: string[];
outgoingChannel?: null | {
balance: string;
id: string;
status: string;
};
qos?: null | {
averageLatency?: null | number;
lastUpdate: number;
probeRate: number;
score: number;
};
}> Parameters
- payload: {
address: string;
apiEndpoint: string | URL;
apiToken: string;
timeout?: number;
}address: string
apiEndpoint: string | URL
apiToken: string
Optional timeout?: number
Returns Promise<{
announcedSources: {
multiaddress: string;
origin: "chain" | "dht";
}[];
incomingChannel?: null | {
balance: string;
id: string;
status: string;
};
observed: string[];
outgoingChannel?: null | {
balance: string;
id: string;
status: string;
};
qos?: null | {
averageLatency?: null | number;
lastUpdate: number;
probeRate: number;
score: number;
};
}>
The API endpoint for authentication.