@parity/light.js
Version:
A high-level reactive JS library optimized for light clients
14 lines (13 loc) • 383 B
TypeScript
import BigNumber from 'bignumber.js';
import { RpcObservableOptions } from '../types';
/**
* Get the amount of peers.
*
* Calls `net_peerCount`
*
* @param options - Options to pass to {@link RpcObservableOptions}.
* @return - An Observable containing the number.
*/
export declare function peerCount$(
options?: RpcObservableOptions
): import('rxjs').Observable<BigNumber>;