An RxJs wrapper around the [[api]]. example: ```javascript import RxApi from '@polkadot/api'; import WsProvider from '@polkadot/api-provider/ws';

const provider = new WsProvider('http://127.0.0.1:9944'); const rxapi = new RxApi(provider); ```

Hierarchy

RxApi

Implements

  • object & object

Constructors

constructor

⊕ new RxApi(provider?: ProviderInterface): RxApi

Defined in index.ts:43

Parameters:

Param Type Default value Description
Default value provider ProviderInterface new Ws(defaults.WS_URL) An API provider using HTTP or WebSocket

Returns: RxApi


Properties

author

● author: RxApiInterface$Section

Defined in index.ts:40


chain

● chain: RxApiInterface$Section

Defined in index.ts:41


state

● state: RxApiInterface$Section

Defined in index.ts:42


system

● system: RxApiInterface$Section

Defined in index.ts:43


Methods

isConnected

▸ isConnected(): BehaviorSubject<boolean>

Defined in index.ts:62

Returns: BehaviorSubject<boolean>


results matching ""

    No results matching ""