+
+ +
+
+ +
+ +

name: RpcRx

+

summary: The RxJS API is a wrapper around the API.

+

description: It allows wrapping API components with observables using RxJS.

+

example:

+
import RpcRx from '@polkadot/rpc-rx';
+import WsProvider from '@polkadot/rpc-provider/ws';
+
+const provider = new WsProvider('http://127.0.0.1:9944');
+const api = new RpcRx(provider);
+
+

Type parameters

+

EventTypes : string | symbol

+

Hierarchy

+

EventEmitter

+

↳ RpcRx

+

Implements

+
    +
  • object
  • +
+

Constructors

+

+

constructor

+

⊕ new RpcRx(provider?: ProviderInterface): RpcRx

+

Defined in index.ts:47

+

Parameters:

+