* Add documentation * Justification u8a decoding and json encoding (#146) * Decode Justifications * Json encoding for justifications * Bump deps * Allow extrinsic length encoding to operate on u8a[] (#148) * Fix config and move generated doc to a subfolder * Cleanup extrinsic encoding (#150) * Cleanup extrinsic encoding * Removed now-defunct type * Add uncheckedLength encoding * Add examples * Ignore package-lock since we use yarn * Cleanup examples * Add gitbook config and some base files for the doc * Do not make full doc mandatory for now * Add contributing guide, polish doc and samples * Update the deps of all samples and add yarn scripts Fix and regenerate the doc * Fix Contributing guide
@polkadot/api-rx
An RxJs wrapper around the @polkadot/api.
Index
Classes
Type aliases
Functions
Type aliases
RxApiInterface
Ƭ RxApiInterface: * RxApiInterface$Keys & object
*
Defined in types.d.ts:19
RxApiInterface$Method
Ƭ RxApiInterface$Method: function
Defined in types.d.ts:9
Type declaration
▸(...params: Array<any>): Observable<any> | BehaviorSubject<any>
Parameters:
| Param | Type |
|---|---|
Rest params |
Array<any> |
Returns: Observable<any> | BehaviorSubject<any>
RxApiInterface$Section
Ƭ RxApiInterface$Section: object
Defined in types.d.ts:11
Type declaration
Functions
cached
▸ cached(subName: string, name: string, section: ApiInterface$Section): function
Defined in observable/cached.ts:19
Parameters:
| Param | Type |
|---|---|
| subName | string |
| name | string |
| section | ApiInterface$Section |
Returns: function
createInterface
▸ createInterface(api: ApiInterface, sectionName: Interface$Sections): RxApiInterface$Section
Defined in interface.ts:11
Parameters:
| Param | Type |
|---|---|
| api | ApiInterface |
| sectionName | Interface$Sections |
Returns: RxApiInterface$Section
observable
▸ observable(subName: string, name: string, section: ApiInterface$Section): function
Defined in observable/index.ts:14
Parameters:
| Param | Type |
|---|---|
| subName | string |
| name | string |
| section | ApiInterface$Section |
Returns: function
subscription
▸ subscription(name: string, params: Array<any>, section: ApiInterface$Section, unsubCallback?: * undefined | function*): BehaviorSubject<any>
Defined in observable/subject.ts:10
Parameters:
| Param | Type |
|---|---|
| name | string |
| params | Array<any> |
| section | ApiInterface$Section |
Optional unsubCallback |
undefined | function |
Returns: BehaviorSubject<any>