@parity/light.js
Version:
A high-level reactive JS library optimized for light clients
30 lines (29 loc) • 931 B
TypeScript
import { AccountsInfo, RpcObservableOptions } from '../types';
/**
* Get accounts info. Calls `parity_accountsInfo`. Works only with a Parity
* node.
*
* @return - An Observable containing all info that can be
* accessed by user concerning accounts.
*/
export declare function accountsInfo$(
options?: RpcObservableOptions
): import('rxjs').Observable<AccountsInfo>;
/**
* Get the name of the current chain. Calls `parity_chain`. Works only with
* a Parity node.
*
* @return - An Observable containing the name of the
* current chain.
*/
export declare function chainName$(
options?: RpcObservableOptions
): import('rxjs').Observable<string>;
/**
* Get the version info of Parity Ethereum. Calls `parity_versionInfo`.
*
* @return - An Observable containing the version object: {major, minor, patch}
*/
export declare function versionInfo$(
options?: RpcObservableOptions
): import('rxjs').Observable<string>;