Sha256: bf253d42771609f9aec3e8a8178a1ce7aead805ff245551f88502f8407fbe43f
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
import { TLong } from "../../interface"; /** * GET /peers/all * Peer list */ export declare function fetchAll(base: string, options?: RequestInit): Promise<IAllResponse>; /** * GET /peers/connected * Connected peers list */ export declare function fetchConnected(base: string, options?: RequestInit): Promise<IAllConnectedResponse>; /** * GET /peers/blacklisted * Blacklisted peers list */ export declare function fetchBlackListed(base: string, options?: RequestInit): Promise<Array<IBlackPeer>>; /** * GET /peers/suspended * Suspended peers list */ export declare function fetchSuspended(base: string, options?: RequestInit): Promise<Array<ISuspendedPeer>>; export interface IAllResponse { peers: Array<IPeerAllResponse>; } export interface IAllConnectedResponse { peers: Array<IPeerConnectedResponse>; } export interface IPeerAllResponse { address: string; lastSeen: TLong; } export interface IPeerConnectedResponse { address: string; declaredAddress: string; peerName: string; peerNonce: TLong; applicationName: string; applicationVersion: string; } export interface IBlackPeer extends ISuspendedPeer { reason: string; } export interface ISuspendedPeer { hostname: string; timestamp: number; }
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts |
waves_lib-0.1.0 | js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts |