[CI Skip] 0.30.5
This commit is contained in:
+1
-1
@@ -402,7 +402,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"GLOSSARY.md","mtime":"2018-10-01T08:43:33.945Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"GLOSSARY.md","mtime":"2018-10-01T09:23:01.768Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
[](https://polkadot.js.org)  [](https://github.com/Flet/semistandard) [](https://www.npmjs.com/package/@polkadot/api-observable) [](https://travis-ci.org/polkadot-js/api) [](https://codeclimate.com/github/polkadot-js/api/maintainability) [](https://coveralls.io/github/polkadot-js/api?branch=master) [](https://david-dm.org/polkadot-js/api?path=packages/api-observable) [](https://david-dm.org/polkadot-js/api?path=packages/api-observable#info=devDependencies)
|
||||
|
||||
@polkadot/api-observable
|
||||
========================
|
||||
|
||||
An RxJs wrapper around the [@polkadot/api](../api).
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
* ["Base"](modules/_base_.md)
|
||||
* [ApiBase](classes/_base_.apibase.md)
|
||||
* ["Calls"](modules/_calls_.md)
|
||||
* [ApiCalls](classes/_calls_.apicalls.md)
|
||||
* ["Combined"](modules/_combined_.md)
|
||||
* [ApiCombined](classes/_combined_.apicombined.md)
|
||||
* ["Queries"](modules/_queries_.md)
|
||||
* [ApiQueries](classes/_queries_.apiqueries.md)
|
||||
* ["classes"](modules/_classes_.md)
|
||||
* [RxProposal](classes/_classes_.rxproposal.md)
|
||||
* [RxProposalDeposits](classes/_classes_.rxproposaldeposits.md)
|
||||
* [RxReferendum](classes/_classes_.rxreferendum.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [Api](classes/_index_.api.md)
|
||||
* ["types.d"](modules/_types_d_.md)
|
||||
@@ -0,0 +1,138 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**ApiBase**
|
||||
|
||||
↳ [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiBase**(api: *`RxApiInterface`*): [ApiBase](_base_.apibase.md)
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RxApiInterface` |
|
||||
|
||||
**Returns:** [ApiBase](_base_.apibase.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="api"></a>
|
||||
|
||||
## `<Protected>` api
|
||||
|
||||
**● api**: *`RxApiInterface`*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="combine"></a>
|
||||
|
||||
## `<Protected>` combine
|
||||
|
||||
▸ **combine**<`T`,`R`>(observables: *`Array`<`Observable`<`any`>>*, mapfn?: *`MapFn`<`R`, `T`>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L28)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
#### R
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| observables | `Array`<`Observable`<`any`>> | - |
|
||||
| `Default value` mapfn | `MapFn`<`R`, `T`> | defaultMapFn |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Defined in [Base.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L36)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L40)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: *`StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:52](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L52)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `StorageFunction` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L63)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,612 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
↳ [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
**↳ ApiCalls**
|
||||
|
||||
↳ [ApiCombined](_combined_.apicombined.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiCalls**(api: *`RxApiInterface`*): [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RxApiInterface` |
|
||||
|
||||
**Returns:** [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="api"></a>
|
||||
|
||||
## `<Protected>` api
|
||||
|
||||
**● api**: *`RxApiInterface`*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[api](_base_.apibase.md#api)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bestnumber"></a>
|
||||
|
||||
## bestNumber
|
||||
|
||||
▸ **bestNumber**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:13](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L13)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chaingetblock"></a>
|
||||
|
||||
## chainGetBlock
|
||||
|
||||
▸ **chainGetBlock**(hash: *`Uint8Array`*): `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:25](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L25)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| hash | `Uint8Array` |
|
||||
|
||||
**Returns:** `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chainnewhead"></a>
|
||||
|
||||
## chainNewHead
|
||||
|
||||
▸ **chainNewHead**(): `Observable`< `Header` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:29](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L29)*
|
||||
|
||||
**Returns:** `Observable`< `Header` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="combine"></a>
|
||||
|
||||
## `<Protected>` combine
|
||||
|
||||
▸ **combine**<`T`,`R`>(observables: *`Array`<`Observable`<`any`>>*, mapfn?: *`MapFn`<`R`, `T`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[combine](_base_.apibase.md#combine)*
|
||||
|
||||
*Defined in [Base.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L28)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
#### R
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| observables | `Array`<`Observable`<`any`>> | - |
|
||||
| `Default value` mapfn | `MapFn`<`R`, `T`> | defaultMapFn |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="democacyvoteof"></a>
|
||||
|
||||
## democacyVoteOf
|
||||
|
||||
▸ **democacyVoteOf**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`<`Bool`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVoteOf](_queries_.apiqueries.md#democacyvoteof)*
|
||||
|
||||
*Defined in [Queries.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Bool`>
|
||||
|
||||
___
|
||||
<a id="democacyvotersfor"></a>
|
||||
|
||||
## democacyVotersFor
|
||||
|
||||
▸ **democacyVotersFor**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVotersFor](_queries_.apiqueries.md#democacyvotersfor)*
|
||||
|
||||
*Defined in [Queries.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L80)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyLaunchPeriod](_queries_.apiqueries.md#democracylaunchperiod)*
|
||||
|
||||
*Defined in [Queries.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L19)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyNextTally](_queries_.apiqueries.md#democracynexttally)*
|
||||
|
||||
*Defined in [Queries.ts:23](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L23)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyproposaldeposits"></a>
|
||||
|
||||
## democracyProposalDeposits
|
||||
|
||||
▸ **democracyProposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyProposalDeposits](_queries_.apiqueries.md#democracyproposaldeposits)*
|
||||
|
||||
*Defined in [Queries.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracypublicproposals"></a>
|
||||
|
||||
## democracyPublicProposals
|
||||
|
||||
▸ **democracyPublicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyPublicProposals](_queries_.apiqueries.md#democracypublicproposals)*
|
||||
|
||||
*Defined in [Queries.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L40)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumcount"></a>
|
||||
|
||||
## democracyReferendumCount
|
||||
|
||||
▸ **democracyReferendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumCount](_queries_.apiqueries.md#democracyreferendumcount)*
|
||||
|
||||
*Defined in [Queries.ts:59](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L59)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfoof"></a>
|
||||
|
||||
## democracyReferendumInfoOf
|
||||
|
||||
▸ **democracyReferendumInfoOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumInfoOf](_queries_.apiqueries.md#democracyreferenduminfoof)*
|
||||
|
||||
*Defined in [Queries.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyVotingPeriod](_queries_.apiqueries.md#democracyvotingperiod)*
|
||||
|
||||
*Defined in [Queries.ts:91](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[eraLastLengthChange](_queries_.apiqueries.md#eralastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:116](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L116)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[fees](_queries_.apiqueries.md#fees)*
|
||||
|
||||
*Defined in [Queries.ts:95](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L95)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L36)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L40)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: *`StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:52](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L52)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `StorageFunction` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L63)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentIndex](_queries_.apiqueries.md#sessioncurrentindex)*
|
||||
|
||||
*Defined in [Queries.ts:128](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L128)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentStart](_queries_.apiqueries.md#sessioncurrentstart)*
|
||||
|
||||
*Defined in [Queries.ts:132](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L132)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLastLengthChange](_queries_.apiqueries.md#sessionlastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:136](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L136)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLength](_queries_.apiqueries.md#sessionlength)*
|
||||
|
||||
*Defined in [Queries.ts:140](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L140)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionReward](_queries_.apiqueries.md#sessionreward)*
|
||||
|
||||
*Defined in [Queries.ts:120](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L120)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionRewardCurrent](_queries_.apiqueries.md#sessionrewardcurrent)*
|
||||
|
||||
*Defined in [Queries.ts:124](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L124)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionValidators](_queries_.apiqueries.md#sessionvalidators)*
|
||||
|
||||
*Defined in [Queries.ts:148](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L148)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionsPerEra](_queries_.apiqueries.md#sessionsperera)*
|
||||
|
||||
*Defined in [Queries.ts:144](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L144)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingfreebalanceof"></a>
|
||||
|
||||
## stakingFreeBalanceOf
|
||||
|
||||
▸ **stakingFreeBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingFreeBalanceOf](_queries_.apiqueries.md#stakingfreebalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:171](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L171)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingIntentions](_queries_.apiqueries.md#stakingintentions)*
|
||||
|
||||
*Defined in [Queries.ts:159](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L159)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominating](_queries_.apiqueries.md#stakingnominating)*
|
||||
|
||||
*Defined in [Queries.ts:186](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L186)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominatorsFor](_queries_.apiqueries.md#stakingnominatorsfor)*
|
||||
|
||||
*Defined in [Queries.ts:175](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L175)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingreservedbalanceof"></a>
|
||||
|
||||
## stakingReservedBalanceOf
|
||||
|
||||
▸ **stakingReservedBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingReservedBalanceOf](_queries_.apiqueries.md#stakingreservedbalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:191](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L191)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemaccountindexof"></a>
|
||||
|
||||
## systemAccountIndexOf
|
||||
|
||||
▸ **systemAccountIndexOf**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[systemAccountIndexOf](_queries_.apiqueries.md#systemaccountindexof)*
|
||||
|
||||
*Defined in [Queries.ts:203](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L203)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampblockperiod"></a>
|
||||
|
||||
## timestampBlockPeriod
|
||||
|
||||
▸ **timestampBlockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampBlockPeriod](_queries_.apiqueries.md#timestampblockperiod)*
|
||||
|
||||
*Defined in [Queries.ts:195](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L195)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampnow"></a>
|
||||
|
||||
## timestampNow
|
||||
|
||||
▸ **timestampNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampNow](_queries_.apiqueries.md#timestampnow)*
|
||||
|
||||
*Defined in [Queries.ts:199](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L199)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`<`u32`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[validatorCount](_queries_.apiqueries.md#validatorcount)*
|
||||
|
||||
*Defined in [Queries.ts:207](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L207)*
|
||||
|
||||
**Returns:** `Observable`<`u32`>
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,324 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S
|
||||
#### T
|
||||
#### V
|
||||
#### E
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxProposal**
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RxProposal**(value: *`Tuple`*): [RxProposal](_classes_.rxproposal.md)
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:9](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Tuple` |
|
||||
|
||||
**Returns:** [RxProposal](_classes_.rxproposal.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="_types"></a>
|
||||
|
||||
## `<Protected>` _Types
|
||||
|
||||
**● _Types**: *`E`*
|
||||
|
||||
*Inherited from Struct._Types*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L27)*
|
||||
|
||||
___
|
||||
<a id="_jsonmap"></a>
|
||||
|
||||
## `<Protected>` _jsonMap
|
||||
|
||||
**● _jsonMap**: *`Map`<`keyof S`, `string`>*
|
||||
|
||||
*Inherited from Struct._jsonMap*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L26)*
|
||||
|
||||
___
|
||||
<a id="raw"></a>
|
||||
|
||||
## raw
|
||||
|
||||
**● raw**: *`T`*
|
||||
|
||||
*Inherited from Base.raw*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Base.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Base.ts#L19)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## Type
|
||||
|
||||
getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L76)*
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
___
|
||||
<a id="address"></a>
|
||||
|
||||
## address
|
||||
|
||||
getaddress(): `AccountId`
|
||||
|
||||
*Defined in [classes.ts:18](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L18)*
|
||||
|
||||
**Returns:** `AccountId`
|
||||
|
||||
___
|
||||
<a id="id"></a>
|
||||
|
||||
## id
|
||||
|
||||
getid(): `PropIndex`
|
||||
|
||||
*Defined in [classes.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L22)*
|
||||
|
||||
**Returns:** `PropIndex`
|
||||
|
||||
___
|
||||
<a id="proposal"></a>
|
||||
|
||||
## proposal
|
||||
|
||||
getproposal(): `Proposal`
|
||||
|
||||
*Defined in [classes.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L26)*
|
||||
|
||||
**Returns:** `Proposal`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bytelength"></a>
|
||||
|
||||
## byteLength
|
||||
|
||||
▸ **byteLength**(): `number`
|
||||
|
||||
*Inherited from Struct.byteLength*
|
||||
|
||||
*Overrides Base.byteLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L80)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
<a id="fromjson"></a>
|
||||
|
||||
## fromJSON
|
||||
|
||||
▸ **fromJSON**(input: *`any`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromJSON*
|
||||
|
||||
*Overrides Base.fromJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:86](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `any` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="fromu8a"></a>
|
||||
|
||||
## fromU8a
|
||||
|
||||
▸ **fromU8a**(input: *`Uint8Array`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromU8a*
|
||||
|
||||
*Overrides Base.fromU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:101](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L101)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(index: *`number`*): `Base`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:111](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L111)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `number` |
|
||||
|
||||
**Returns:** `Base`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `Array`<`string`>
|
||||
|
||||
*Inherited from Struct.keys*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:126](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L126)*
|
||||
|
||||
**Returns:** `Array`<`string`>
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJSON
|
||||
|
||||
▸ **toJSON**(): `any`
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Overrides Base.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:115](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L115)*
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="tostring"></a>
|
||||
|
||||
## toString
|
||||
|
||||
▸ **toString**(): `string`
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Overrides Base.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:138](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L138)*
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tou8a"></a>
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Overrides Base.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:130](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L130)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true`|
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="values"></a>
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `Array`<`Base`>
|
||||
|
||||
*Inherited from Struct.values*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:147](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L147)*
|
||||
|
||||
**Returns:** `Array`<`Base`>
|
||||
|
||||
___
|
||||
<a id="decode"></a>
|
||||
|
||||
## `<Static>` decode
|
||||
|
||||
▸ **decode**<`S`,`V`,`T`>(Types: *`S`*, value: * `V` | `Array`<`any`>*, isTuple: *`boolean`*): `T`
|
||||
|
||||
*Inherited from Struct.decode*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:45](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L45)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
#### V
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
| value | `V` | `Array`<`any`>|
|
||||
| isTuple | `boolean` |
|
||||
|
||||
**Returns:** `T`
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
|
||||
## `<Static>` with
|
||||
|
||||
▸ **with**<`S`>(Types: *`S`*): `object`
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:66](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L66)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
|
||||
**Returns:** `object`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,313 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S
|
||||
#### T
|
||||
#### V
|
||||
#### E
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxProposalDeposits**
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RxProposalDeposits**(value: *`Tuple`*): [RxProposalDeposits](_classes_.rxproposaldeposits.md)
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:31](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L31)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Tuple` |
|
||||
|
||||
**Returns:** [RxProposalDeposits](_classes_.rxproposaldeposits.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="_types"></a>
|
||||
|
||||
## `<Protected>` _Types
|
||||
|
||||
**● _Types**: *`E`*
|
||||
|
||||
*Inherited from Struct._Types*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L27)*
|
||||
|
||||
___
|
||||
<a id="_jsonmap"></a>
|
||||
|
||||
## `<Protected>` _jsonMap
|
||||
|
||||
**● _jsonMap**: *`Map`<`keyof S`, `string`>*
|
||||
|
||||
*Inherited from Struct._jsonMap*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L26)*
|
||||
|
||||
___
|
||||
<a id="raw"></a>
|
||||
|
||||
## raw
|
||||
|
||||
**● raw**: *`T`*
|
||||
|
||||
*Inherited from Base.raw*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Base.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Base.ts#L19)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## Type
|
||||
|
||||
getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L76)*
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
___
|
||||
<a id="addresses"></a>
|
||||
|
||||
## addresses
|
||||
|
||||
getaddresses(): `Vector`<`AccountId`>
|
||||
|
||||
*Defined in [classes.ts:39](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L39)*
|
||||
|
||||
**Returns:** `Vector`<`AccountId`>
|
||||
|
||||
___
|
||||
<a id="balance"></a>
|
||||
|
||||
## balance
|
||||
|
||||
getbalance(): `Balance`
|
||||
|
||||
*Defined in [classes.ts:43](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L43)*
|
||||
|
||||
**Returns:** `Balance`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bytelength"></a>
|
||||
|
||||
## byteLength
|
||||
|
||||
▸ **byteLength**(): `number`
|
||||
|
||||
*Inherited from Struct.byteLength*
|
||||
|
||||
*Overrides Base.byteLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L80)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
<a id="fromjson"></a>
|
||||
|
||||
## fromJSON
|
||||
|
||||
▸ **fromJSON**(input: *`any`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromJSON*
|
||||
|
||||
*Overrides Base.fromJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:86](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `any` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="fromu8a"></a>
|
||||
|
||||
## fromU8a
|
||||
|
||||
▸ **fromU8a**(input: *`Uint8Array`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromU8a*
|
||||
|
||||
*Overrides Base.fromU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:101](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L101)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(index: *`number`*): `Base`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:111](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L111)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `number` |
|
||||
|
||||
**Returns:** `Base`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `Array`<`string`>
|
||||
|
||||
*Inherited from Struct.keys*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:126](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L126)*
|
||||
|
||||
**Returns:** `Array`<`string`>
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJSON
|
||||
|
||||
▸ **toJSON**(): `any`
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Overrides Base.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:115](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L115)*
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="tostring"></a>
|
||||
|
||||
## toString
|
||||
|
||||
▸ **toString**(): `string`
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Overrides Base.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:138](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L138)*
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tou8a"></a>
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Overrides Base.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:130](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L130)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true`|
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="values"></a>
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `Array`<`Base`>
|
||||
|
||||
*Inherited from Struct.values*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:147](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L147)*
|
||||
|
||||
**Returns:** `Array`<`Base`>
|
||||
|
||||
___
|
||||
<a id="decode"></a>
|
||||
|
||||
## `<Static>` decode
|
||||
|
||||
▸ **decode**<`S`,`V`,`T`>(Types: *`S`*, value: * `V` | `Array`<`any`>*, isTuple: *`boolean`*): `T`
|
||||
|
||||
*Inherited from Struct.decode*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:45](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L45)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
#### V
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
| value | `V` | `Array`<`any`>|
|
||||
| isTuple | `boolean` |
|
||||
|
||||
**Returns:** `T`
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
|
||||
## `<Static>` with
|
||||
|
||||
▸ **with**<`S`>(Types: *`S`*): `object`
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:66](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L66)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
|
||||
**Returns:** `object`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,336 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S
|
||||
#### T
|
||||
#### V
|
||||
#### E
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxReferendum**
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RxReferendum**(value: *`Tuple`*, id: * `ReferendumIndex` | `BN` | `number`*): [RxReferendum](_classes_.rxreferendum.md)
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:48](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L48)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Tuple` |
|
||||
| id | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** [RxReferendum](_classes_.rxreferendum.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="_types"></a>
|
||||
|
||||
## `<Protected>` _Types
|
||||
|
||||
**● _Types**: *`E`*
|
||||
|
||||
*Inherited from Struct._Types*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L27)*
|
||||
|
||||
___
|
||||
<a id="_jsonmap"></a>
|
||||
|
||||
## `<Protected>` _jsonMap
|
||||
|
||||
**● _jsonMap**: *`Map`<`keyof S`, `string`>*
|
||||
|
||||
*Inherited from Struct._jsonMap*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L26)*
|
||||
|
||||
___
|
||||
<a id="raw"></a>
|
||||
|
||||
## raw
|
||||
|
||||
**● raw**: *`T`*
|
||||
|
||||
*Inherited from Base.raw*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Base.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Base.ts#L19)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## Type
|
||||
|
||||
getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L76)*
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
___
|
||||
<a id="blocknumber"></a>
|
||||
|
||||
## blockNumber
|
||||
|
||||
getblockNumber(): `BlockNumber`
|
||||
|
||||
*Defined in [classes.ts:58](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L58)*
|
||||
|
||||
**Returns:** `BlockNumber`
|
||||
|
||||
___
|
||||
<a id="id"></a>
|
||||
|
||||
## id
|
||||
|
||||
getid(): `ReferendumIndex`
|
||||
|
||||
*Defined in [classes.ts:62](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L62)*
|
||||
|
||||
**Returns:** `ReferendumIndex`
|
||||
|
||||
___
|
||||
<a id="proposal"></a>
|
||||
|
||||
## proposal
|
||||
|
||||
getproposal(): `Proposal`
|
||||
|
||||
*Defined in [classes.ts:66](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L66)*
|
||||
|
||||
**Returns:** `Proposal`
|
||||
|
||||
___
|
||||
<a id="votethreshold"></a>
|
||||
|
||||
## voteThreshold
|
||||
|
||||
getvoteThreshold(): `VoteThreshold`
|
||||
|
||||
*Defined in [classes.ts:70](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/classes.ts#L70)*
|
||||
|
||||
**Returns:** `VoteThreshold`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bytelength"></a>
|
||||
|
||||
## byteLength
|
||||
|
||||
▸ **byteLength**(): `number`
|
||||
|
||||
*Inherited from Struct.byteLength*
|
||||
|
||||
*Overrides Base.byteLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L80)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
<a id="fromjson"></a>
|
||||
|
||||
## fromJSON
|
||||
|
||||
▸ **fromJSON**(input: *`any`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromJSON*
|
||||
|
||||
*Overrides Base.fromJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:86](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `any` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="fromu8a"></a>
|
||||
|
||||
## fromU8a
|
||||
|
||||
▸ **fromU8a**(input: *`Uint8Array`*): `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
*Inherited from Struct.fromU8a*
|
||||
|
||||
*Overrides Base.fromU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:101](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L101)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(index: *`number`*): `Base`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:111](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L111)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `number` |
|
||||
|
||||
**Returns:** `Base`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `Array`<`string`>
|
||||
|
||||
*Inherited from Struct.keys*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:126](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L126)*
|
||||
|
||||
**Returns:** `Array`<`string`>
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJSON
|
||||
|
||||
▸ **toJSON**(): `any`
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Overrides Base.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:115](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L115)*
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="tostring"></a>
|
||||
|
||||
## toString
|
||||
|
||||
▸ **toString**(): `string`
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Overrides Base.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:138](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L138)*
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tou8a"></a>
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Overrides Base.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:130](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L130)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true`|
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="values"></a>
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `Array`<`Base`>
|
||||
|
||||
*Inherited from Struct.values*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:147](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L147)*
|
||||
|
||||
**Returns:** `Array`<`Base`>
|
||||
|
||||
___
|
||||
<a id="decode"></a>
|
||||
|
||||
## `<Static>` decode
|
||||
|
||||
▸ **decode**<`S`,`V`,`T`>(Types: *`S`*, value: * `V` | `Array`<`any`>*, isTuple: *`boolean`*): `T`
|
||||
|
||||
*Inherited from Struct.decode*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:45](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L45)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
#### V
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
| value | `V` | `Array`<`any`>|
|
||||
| isTuple | `boolean` |
|
||||
|
||||
**Returns:** `T`
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
|
||||
## `<Static>` with
|
||||
|
||||
▸ **with**<`S`>(Types: *`S`*): `object`
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/api-codec/src/codec/Struct.ts:66](https://github.com/polkadot-js/api/blob/782bb80/packages/api-codec/src/codec/Struct.ts#L66)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
|
||||
**Returns:** `object`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,899 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
↳ [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
**↳ ApiCombined**
|
||||
|
||||
↳ [Api](_index_.api.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiCombined**(api: *`RxApiInterface`*): [ApiCombined](_combined_.apicombined.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RxApiInterface` |
|
||||
|
||||
**Returns:** [ApiCombined](_combined_.apicombined.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="api"></a>
|
||||
|
||||
## `<Protected>` api
|
||||
|
||||
**● api**: *`RxApiInterface`*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[api](_base_.apibase.md#api)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bestnumber"></a>
|
||||
|
||||
## bestNumber
|
||||
|
||||
▸ **bestNumber**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[bestNumber](_calls_.apicalls.md#bestnumber)*
|
||||
|
||||
*Defined in [Calls.ts:13](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L13)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chaingetblock"></a>
|
||||
|
||||
## chainGetBlock
|
||||
|
||||
▸ **chainGetBlock**(hash: *`Uint8Array`*): `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[chainGetBlock](_calls_.apicalls.md#chaingetblock)*
|
||||
|
||||
*Defined in [Calls.ts:25](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L25)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| hash | `Uint8Array` |
|
||||
|
||||
**Returns:** `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chainnewhead"></a>
|
||||
|
||||
## chainNewHead
|
||||
|
||||
▸ **chainNewHead**(): `Observable`< `Header` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[chainNewHead](_calls_.apicalls.md#chainnewhead)*
|
||||
|
||||
*Defined in [Calls.ts:29](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L29)*
|
||||
|
||||
**Returns:** `Observable`< `Header` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="combine"></a>
|
||||
|
||||
## `<Protected>` combine
|
||||
|
||||
▸ **combine**<`T`,`R`>(observables: *`Array`<`Observable`<`any`>>*, mapfn?: *`MapFn`<`R`, `T`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[combine](_base_.apibase.md#combine)*
|
||||
|
||||
*Defined in [Base.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L28)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
#### R
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| observables | `Array`<`Observable`<`any`>> | - |
|
||||
| `Default value` mapfn | `MapFn`<`R`, `T`> | defaultMapFn |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="democacyvoteof"></a>
|
||||
|
||||
## democacyVoteOf
|
||||
|
||||
▸ **democacyVoteOf**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`<`Bool`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVoteOf](_queries_.apiqueries.md#democacyvoteof)*
|
||||
|
||||
*Defined in [Queries.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Bool`>
|
||||
|
||||
___
|
||||
<a id="democacyvotersfor"></a>
|
||||
|
||||
## democacyVotersFor
|
||||
|
||||
▸ **democacyVotersFor**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVotersFor](_queries_.apiqueries.md#democacyvotersfor)*
|
||||
|
||||
*Defined in [Queries.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L80)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyLaunchPeriod](_queries_.apiqueries.md#democracylaunchperiod)*
|
||||
|
||||
*Defined in [Queries.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L19)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyNextTally](_queries_.apiqueries.md#democracynexttally)*
|
||||
|
||||
*Defined in [Queries.ts:23](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L23)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyproposalcount"></a>
|
||||
|
||||
## democracyProposalCount
|
||||
|
||||
▸ **democracyProposalCount**(): `Observable`<`number`>
|
||||
|
||||
*Defined in [Combined.ts:20](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L20)*
|
||||
|
||||
**Returns:** `Observable`<`number`>
|
||||
|
||||
___
|
||||
<a id="democracyproposaldeposits"></a>
|
||||
|
||||
## democracyProposalDeposits
|
||||
|
||||
▸ **democracyProposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyProposalDeposits](_queries_.apiqueries.md#democracyproposaldeposits)*
|
||||
|
||||
*Defined in [Queries.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracypublicproposals"></a>
|
||||
|
||||
## democracyPublicProposals
|
||||
|
||||
▸ **democracyPublicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyPublicProposals](_queries_.apiqueries.md#democracypublicproposals)*
|
||||
|
||||
*Defined in [Queries.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L40)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumcount"></a>
|
||||
|
||||
## democracyReferendumCount
|
||||
|
||||
▸ **democracyReferendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumCount](_queries_.apiqueries.md#democracyreferendumcount)*
|
||||
|
||||
*Defined in [Queries.ts:59](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L59)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfoof"></a>
|
||||
|
||||
## democracyReferendumInfoOf
|
||||
|
||||
▸ **democracyReferendumInfoOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumInfoOf](_queries_.apiqueries.md#democracyreferenduminfoof)*
|
||||
|
||||
*Defined in [Queries.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfos"></a>
|
||||
|
||||
## democracyReferendumInfos
|
||||
|
||||
▸ **democracyReferendumInfos**(referendumIds: *`Array`< `ReferendumIndex` | `BN` | `number`>*): `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
*Defined in [Combined.ts:30](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L30)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumIds | `Array`< `ReferendumIndex` | `BN` | `number`> |
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumvoters"></a>
|
||||
|
||||
## democracyReferendumVoters
|
||||
|
||||
▸ **democracyReferendumVoters**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<[RxReferendumVote](../modules/_types_d_.md#rxreferendumvote)>>
|
||||
|
||||
*Defined in [Combined.ts:42](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L42)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendumVote](../modules/_types_d_.md#rxreferendumvote)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendums"></a>
|
||||
|
||||
## democracyReferendums
|
||||
|
||||
▸ **democracyReferendums**(): `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
*Defined in [Combined.ts:58](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L58)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyvotersbalancesof"></a>
|
||||
|
||||
## democracyVotersBalancesOf
|
||||
|
||||
▸ **democracyVotersBalancesOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`Balance`>>
|
||||
|
||||
*Defined in [Combined.ts:87](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L87)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`Balance`>>
|
||||
|
||||
___
|
||||
<a id="democracyvotersvotesof"></a>
|
||||
|
||||
## democracyVotersVotesOf
|
||||
|
||||
▸ **democracyVotersVotesOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`Bool`>>
|
||||
|
||||
*Defined in [Combined.ts:103](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L103)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`Bool`>>
|
||||
|
||||
___
|
||||
<a id="democracyvotesof"></a>
|
||||
|
||||
## democracyVotesOf
|
||||
|
||||
▸ **democracyVotesOf**(index: * `ReferendumIndex` | `BN` | `number`*, addresses: *`Array`< `AccountId` | `string`>*): `Observable`<`boolean`>
|
||||
|
||||
*Defined in [Combined.ts:79](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L79)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyVotingPeriod](_queries_.apiqueries.md#democracyvotingperiod)*
|
||||
|
||||
*Defined in [Queries.ts:91](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablocklength"></a>
|
||||
|
||||
## eraBlockLength
|
||||
|
||||
▸ **eraBlockLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:114](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L114)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablockprogress"></a>
|
||||
|
||||
## eraBlockProgress
|
||||
|
||||
▸ **eraBlockProgress**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:129](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L129)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablockremaining"></a>
|
||||
|
||||
## eraBlockRemaining
|
||||
|
||||
▸ **eraBlockRemaining**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:151](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L151)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[eraLastLengthChange](_queries_.apiqueries.md#eralastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:116](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L116)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[fees](_queries_.apiqueries.md#fees)*
|
||||
|
||||
*Defined in [Queries.ts:95](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L95)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L36)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L40)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: *`StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:52](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L52)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `StorageFunction` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L63)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="sessionblockprogress"></a>
|
||||
|
||||
## sessionBlockProgress
|
||||
|
||||
▸ **sessionBlockProgress**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:166](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L166)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionblockremaining"></a>
|
||||
|
||||
## sessionBlockRemaining
|
||||
|
||||
▸ **sessionBlockRemaining**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:185](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L185)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionbrokenvalue"></a>
|
||||
|
||||
## sessionBrokenValue
|
||||
|
||||
▸ **sessionBrokenValue**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:200](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L200)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentIndex](_queries_.apiqueries.md#sessioncurrentindex)*
|
||||
|
||||
*Defined in [Queries.ts:128](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L128)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentStart](_queries_.apiqueries.md#sessioncurrentstart)*
|
||||
|
||||
*Defined in [Queries.ts:132](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L132)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLastLengthChange](_queries_.apiqueries.md#sessionlastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:136](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L136)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLength](_queries_.apiqueries.md#sessionlength)*
|
||||
|
||||
*Defined in [Queries.ts:140](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L140)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionReward](_queries_.apiqueries.md#sessionreward)*
|
||||
|
||||
*Defined in [Queries.ts:120](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L120)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionRewardCurrent](_queries_.apiqueries.md#sessionrewardcurrent)*
|
||||
|
||||
*Defined in [Queries.ts:124](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L124)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessiontimeexpected"></a>
|
||||
|
||||
## sessionTimeExpected
|
||||
|
||||
▸ **sessionTimeExpected**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:219](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L219)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessiontimeremaining"></a>
|
||||
|
||||
## sessionTimeRemaining
|
||||
|
||||
▸ **sessionTimeRemaining**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Combined.ts:234](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L234)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionValidators](_queries_.apiqueries.md#sessionvalidators)*
|
||||
|
||||
*Defined in [Queries.ts:148](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L148)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionsPerEra](_queries_.apiqueries.md#sessionsperera)*
|
||||
|
||||
*Defined in [Queries.ts:144](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L144)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingfreebalanceof"></a>
|
||||
|
||||
## stakingFreeBalanceOf
|
||||
|
||||
▸ **stakingFreeBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingFreeBalanceOf](_queries_.apiqueries.md#stakingfreebalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:171](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L171)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingIntentions](_queries_.apiqueries.md#stakingintentions)*
|
||||
|
||||
*Defined in [Queries.ts:159](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L159)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominating](_queries_.apiqueries.md#stakingnominating)*
|
||||
|
||||
*Defined in [Queries.ts:186](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L186)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominatorsFor](_queries_.apiqueries.md#stakingnominatorsfor)*
|
||||
|
||||
*Defined in [Queries.ts:175](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L175)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingreservedbalanceof"></a>
|
||||
|
||||
## stakingReservedBalanceOf
|
||||
|
||||
▸ **stakingReservedBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingReservedBalanceOf](_queries_.apiqueries.md#stakingreservedbalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:191](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L191)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemaccountindexof"></a>
|
||||
|
||||
## systemAccountIndexOf
|
||||
|
||||
▸ **systemAccountIndexOf**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[systemAccountIndexOf](_queries_.apiqueries.md#systemaccountindexof)*
|
||||
|
||||
*Defined in [Queries.ts:203](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L203)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampblockperiod"></a>
|
||||
|
||||
## timestampBlockPeriod
|
||||
|
||||
▸ **timestampBlockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampBlockPeriod](_queries_.apiqueries.md#timestampblockperiod)*
|
||||
|
||||
*Defined in [Queries.ts:195](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L195)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampnow"></a>
|
||||
|
||||
## timestampNow
|
||||
|
||||
▸ **timestampNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampNow](_queries_.apiqueries.md#timestampnow)*
|
||||
|
||||
*Defined in [Queries.ts:199](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L199)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="validatingbalance"></a>
|
||||
|
||||
## validatingBalance
|
||||
|
||||
▸ **validatingBalance**(address: * `AccountId` | `string`*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
*Defined in [Combined.ts:249](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L249)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
___
|
||||
<a id="validatingbalances"></a>
|
||||
|
||||
## validatingBalances
|
||||
|
||||
▸ **validatingBalances**(...addresses: *`Array`< `AccountId` | `string`>*): `Observable`<[RxBalanceMap](../modules/_types_d_.md#rxbalancemap)>
|
||||
|
||||
*Defined in [Combined.ts:274](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L274)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<[RxBalanceMap](../modules/_types_d_.md#rxbalancemap)>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`<`u32`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[validatorCount](_queries_.apiqueries.md#validatorcount)*
|
||||
|
||||
*Defined in [Queries.ts:207](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L207)*
|
||||
|
||||
**Returns:** `Observable`<`u32`>
|
||||
|
||||
___
|
||||
<a id="votingbalance"></a>
|
||||
|
||||
## votingBalance
|
||||
|
||||
▸ **votingBalance**(_address: * `AccountId` | `string`*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
*Defined in [Combined.ts:288](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L288)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| _address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
___
|
||||
<a id="votingbalances"></a>
|
||||
|
||||
## votingBalances
|
||||
|
||||
▸ **votingBalances**(...addresses: *`Array`< `AccountId` | `string`>*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)[]>
|
||||
|
||||
*Defined in [Combined.ts:322](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L322)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)[]>
|
||||
|
||||
___
|
||||
<a id="votingbalancesnominatorsfor"></a>
|
||||
|
||||
## votingBalancesNominatorsFor
|
||||
|
||||
▸ **votingBalancesNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`any`>
|
||||
|
||||
*Defined in [Combined.ts:311](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L311)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`any`>
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,937 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
↳ [ApiCombined](_combined_.apicombined.md)
|
||||
|
||||
**↳ Api**
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new Api**(api: *`RxApiInterface`*): [Api](_index_.api.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RxApiInterface` |
|
||||
|
||||
**Returns:** [Api](_index_.api.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="api"></a>
|
||||
|
||||
## `<Protected>` api
|
||||
|
||||
**● api**: *`RxApiInterface`*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[api](_base_.apibase.md#api)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="bestnumber"></a>
|
||||
|
||||
## bestNumber
|
||||
|
||||
▸ **bestNumber**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[bestNumber](_calls_.apicalls.md#bestnumber)*
|
||||
|
||||
*Defined in [Calls.ts:13](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L13)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chaingetblock"></a>
|
||||
|
||||
## chainGetBlock
|
||||
|
||||
▸ **chainGetBlock**(hash: *`Uint8Array`*): `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[chainGetBlock](_calls_.apicalls.md#chaingetblock)*
|
||||
|
||||
*Defined in [Calls.ts:25](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L25)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| hash | `Uint8Array` |
|
||||
|
||||
**Returns:** `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chainnewhead"></a>
|
||||
|
||||
## chainNewHead
|
||||
|
||||
▸ **chainNewHead**(): `Observable`< `Header` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCalls](_calls_.apicalls.md).[chainNewHead](_calls_.apicalls.md#chainnewhead)*
|
||||
|
||||
*Defined in [Calls.ts:29](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Calls.ts#L29)*
|
||||
|
||||
**Returns:** `Observable`< `Header` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="combine"></a>
|
||||
|
||||
## `<Protected>` combine
|
||||
|
||||
▸ **combine**<`T`,`R`>(observables: *`Array`<`Observable`<`any`>>*, mapfn?: *`MapFn`<`R`, `T`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[combine](_base_.apibase.md#combine)*
|
||||
|
||||
*Defined in [Base.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L28)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
#### R
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| observables | `Array`<`Observable`<`any`>> | - |
|
||||
| `Default value` mapfn | `MapFn`<`R`, `T`> | defaultMapFn |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="democacyvoteof"></a>
|
||||
|
||||
## democacyVoteOf
|
||||
|
||||
▸ **democacyVoteOf**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`<`Bool`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVoteOf](_queries_.apiqueries.md#democacyvoteof)*
|
||||
|
||||
*Defined in [Queries.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Bool`>
|
||||
|
||||
___
|
||||
<a id="democacyvotersfor"></a>
|
||||
|
||||
## democacyVotersFor
|
||||
|
||||
▸ **democacyVotersFor**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democacyVotersFor](_queries_.apiqueries.md#democacyvotersfor)*
|
||||
|
||||
*Defined in [Queries.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L80)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyLaunchPeriod](_queries_.apiqueries.md#democracylaunchperiod)*
|
||||
|
||||
*Defined in [Queries.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L19)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyNextTally](_queries_.apiqueries.md#democracynexttally)*
|
||||
|
||||
*Defined in [Queries.ts:23](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L23)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyproposalcount"></a>
|
||||
|
||||
## democracyProposalCount
|
||||
|
||||
▸ **democracyProposalCount**(): `Observable`<`number`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyProposalCount](_combined_.apicombined.md#democracyproposalcount)*
|
||||
|
||||
*Defined in [Combined.ts:20](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L20)*
|
||||
|
||||
**Returns:** `Observable`<`number`>
|
||||
|
||||
___
|
||||
<a id="democracyproposaldeposits"></a>
|
||||
|
||||
## democracyProposalDeposits
|
||||
|
||||
▸ **democracyProposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyProposalDeposits](_queries_.apiqueries.md#democracyproposaldeposits)*
|
||||
|
||||
*Defined in [Queries.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracypublicproposals"></a>
|
||||
|
||||
## democracyPublicProposals
|
||||
|
||||
▸ **democracyPublicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyPublicProposals](_queries_.apiqueries.md#democracypublicproposals)*
|
||||
|
||||
*Defined in [Queries.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L40)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumcount"></a>
|
||||
|
||||
## democracyReferendumCount
|
||||
|
||||
▸ **democracyReferendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumCount](_queries_.apiqueries.md#democracyreferendumcount)*
|
||||
|
||||
*Defined in [Queries.ts:59](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L59)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfoof"></a>
|
||||
|
||||
## democracyReferendumInfoOf
|
||||
|
||||
▸ **democracyReferendumInfoOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyReferendumInfoOf](_queries_.apiqueries.md#democracyreferenduminfoof)*
|
||||
|
||||
*Defined in [Queries.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfos"></a>
|
||||
|
||||
## democracyReferendumInfos
|
||||
|
||||
▸ **democracyReferendumInfos**(referendumIds: *`Array`< `ReferendumIndex` | `BN` | `number`>*): `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyReferendumInfos](_combined_.apicombined.md#democracyreferenduminfos)*
|
||||
|
||||
*Defined in [Combined.ts:30](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L30)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumIds | `Array`< `ReferendumIndex` | `BN` | `number`> |
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumvoters"></a>
|
||||
|
||||
## democracyReferendumVoters
|
||||
|
||||
▸ **democracyReferendumVoters**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<[RxReferendumVote](../modules/_types_d_.md#rxreferendumvote)>>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyReferendumVoters](_combined_.apicombined.md#democracyreferendumvoters)*
|
||||
|
||||
*Defined in [Combined.ts:42](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L42)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendumVote](../modules/_types_d_.md#rxreferendumvote)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendums"></a>
|
||||
|
||||
## democracyReferendums
|
||||
|
||||
▸ **democracyReferendums**(): `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyReferendums](_combined_.apicombined.md#democracyreferendums)*
|
||||
|
||||
*Defined in [Combined.ts:58](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L58)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxReferendum](_classes_.rxreferendum.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyvotersbalancesof"></a>
|
||||
|
||||
## democracyVotersBalancesOf
|
||||
|
||||
▸ **democracyVotersBalancesOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`Balance`>>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyVotersBalancesOf](_combined_.apicombined.md#democracyvotersbalancesof)*
|
||||
|
||||
*Defined in [Combined.ts:87](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L87)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`Balance`>>
|
||||
|
||||
___
|
||||
<a id="democracyvotersvotesof"></a>
|
||||
|
||||
## democracyVotersVotesOf
|
||||
|
||||
▸ **democracyVotersVotesOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`Bool`>>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyVotersVotesOf](_combined_.apicombined.md#democracyvotersvotesof)*
|
||||
|
||||
*Defined in [Combined.ts:103](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L103)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`Bool`>>
|
||||
|
||||
___
|
||||
<a id="democracyvotesof"></a>
|
||||
|
||||
## democracyVotesOf
|
||||
|
||||
▸ **democracyVotesOf**(index: * `ReferendumIndex` | `BN` | `number`*, addresses: *`Array`< `AccountId` | `string`>*): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[democracyVotesOf](_combined_.apicombined.md#democracyvotesof)*
|
||||
|
||||
*Defined in [Combined.ts:79](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L79)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyVotingPeriod](_queries_.apiqueries.md#democracyvotingperiod)*
|
||||
|
||||
*Defined in [Queries.ts:91](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablocklength"></a>
|
||||
|
||||
## eraBlockLength
|
||||
|
||||
▸ **eraBlockLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[eraBlockLength](_combined_.apicombined.md#erablocklength)*
|
||||
|
||||
*Defined in [Combined.ts:114](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L114)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablockprogress"></a>
|
||||
|
||||
## eraBlockProgress
|
||||
|
||||
▸ **eraBlockProgress**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[eraBlockProgress](_combined_.apicombined.md#erablockprogress)*
|
||||
|
||||
*Defined in [Combined.ts:129](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L129)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="erablockremaining"></a>
|
||||
|
||||
## eraBlockRemaining
|
||||
|
||||
▸ **eraBlockRemaining**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[eraBlockRemaining](_combined_.apicombined.md#erablockremaining)*
|
||||
|
||||
*Defined in [Combined.ts:151](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L151)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[eraLastLengthChange](_queries_.apiqueries.md#eralastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:116](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L116)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[fees](_queries_.apiqueries.md#fees)*
|
||||
|
||||
*Defined in [Queries.ts:95](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L95)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L36)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L40)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: *`StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:52](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L52)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `StorageFunction` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L63)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="sessionblockprogress"></a>
|
||||
|
||||
## sessionBlockProgress
|
||||
|
||||
▸ **sessionBlockProgress**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[sessionBlockProgress](_combined_.apicombined.md#sessionblockprogress)*
|
||||
|
||||
*Defined in [Combined.ts:166](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L166)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionblockremaining"></a>
|
||||
|
||||
## sessionBlockRemaining
|
||||
|
||||
▸ **sessionBlockRemaining**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[sessionBlockRemaining](_combined_.apicombined.md#sessionblockremaining)*
|
||||
|
||||
*Defined in [Combined.ts:185](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L185)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionbrokenvalue"></a>
|
||||
|
||||
## sessionBrokenValue
|
||||
|
||||
▸ **sessionBrokenValue**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[sessionBrokenValue](_combined_.apicombined.md#sessionbrokenvalue)*
|
||||
|
||||
*Defined in [Combined.ts:200](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L200)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentIndex](_queries_.apiqueries.md#sessioncurrentindex)*
|
||||
|
||||
*Defined in [Queries.ts:128](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L128)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentStart](_queries_.apiqueries.md#sessioncurrentstart)*
|
||||
|
||||
*Defined in [Queries.ts:132](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L132)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLastLengthChange](_queries_.apiqueries.md#sessionlastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:136](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L136)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLength](_queries_.apiqueries.md#sessionlength)*
|
||||
|
||||
*Defined in [Queries.ts:140](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L140)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionReward](_queries_.apiqueries.md#sessionreward)*
|
||||
|
||||
*Defined in [Queries.ts:120](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L120)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionRewardCurrent](_queries_.apiqueries.md#sessionrewardcurrent)*
|
||||
|
||||
*Defined in [Queries.ts:124](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L124)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessiontimeexpected"></a>
|
||||
|
||||
## sessionTimeExpected
|
||||
|
||||
▸ **sessionTimeExpected**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[sessionTimeExpected](_combined_.apicombined.md#sessiontimeexpected)*
|
||||
|
||||
*Defined in [Combined.ts:219](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L219)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessiontimeremaining"></a>
|
||||
|
||||
## sessionTimeRemaining
|
||||
|
||||
▸ **sessionTimeRemaining**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[sessionTimeRemaining](_combined_.apicombined.md#sessiontimeremaining)*
|
||||
|
||||
*Defined in [Combined.ts:234](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L234)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionValidators](_queries_.apiqueries.md#sessionvalidators)*
|
||||
|
||||
*Defined in [Queries.ts:148](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L148)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionsPerEra](_queries_.apiqueries.md#sessionsperera)*
|
||||
|
||||
*Defined in [Queries.ts:144](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L144)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingfreebalanceof"></a>
|
||||
|
||||
## stakingFreeBalanceOf
|
||||
|
||||
▸ **stakingFreeBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingFreeBalanceOf](_queries_.apiqueries.md#stakingfreebalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:171](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L171)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingIntentions](_queries_.apiqueries.md#stakingintentions)*
|
||||
|
||||
*Defined in [Queries.ts:159](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L159)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominating](_queries_.apiqueries.md#stakingnominating)*
|
||||
|
||||
*Defined in [Queries.ts:186](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L186)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominatorsFor](_queries_.apiqueries.md#stakingnominatorsfor)*
|
||||
|
||||
*Defined in [Queries.ts:175](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L175)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingreservedbalanceof"></a>
|
||||
|
||||
## stakingReservedBalanceOf
|
||||
|
||||
▸ **stakingReservedBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingReservedBalanceOf](_queries_.apiqueries.md#stakingreservedbalanceof)*
|
||||
|
||||
*Defined in [Queries.ts:191](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L191)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemaccountindexof"></a>
|
||||
|
||||
## systemAccountIndexOf
|
||||
|
||||
▸ **systemAccountIndexOf**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[systemAccountIndexOf](_queries_.apiqueries.md#systemaccountindexof)*
|
||||
|
||||
*Defined in [Queries.ts:203](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L203)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampblockperiod"></a>
|
||||
|
||||
## timestampBlockPeriod
|
||||
|
||||
▸ **timestampBlockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampBlockPeriod](_queries_.apiqueries.md#timestampblockperiod)*
|
||||
|
||||
*Defined in [Queries.ts:195](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L195)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampnow"></a>
|
||||
|
||||
## timestampNow
|
||||
|
||||
▸ **timestampNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[timestampNow](_queries_.apiqueries.md#timestampnow)*
|
||||
|
||||
*Defined in [Queries.ts:199](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L199)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="validatingbalance"></a>
|
||||
|
||||
## validatingBalance
|
||||
|
||||
▸ **validatingBalance**(address: * `AccountId` | `string`*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[validatingBalance](_combined_.apicombined.md#validatingbalance)*
|
||||
|
||||
*Defined in [Combined.ts:249](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L249)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
___
|
||||
<a id="validatingbalances"></a>
|
||||
|
||||
## validatingBalances
|
||||
|
||||
▸ **validatingBalances**(...addresses: *`Array`< `AccountId` | `string`>*): `Observable`<[RxBalanceMap](../modules/_types_d_.md#rxbalancemap)>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[validatingBalances](_combined_.apicombined.md#validatingbalances)*
|
||||
|
||||
*Defined in [Combined.ts:274](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L274)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<[RxBalanceMap](../modules/_types_d_.md#rxbalancemap)>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`<`u32`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[validatorCount](_queries_.apiqueries.md#validatorcount)*
|
||||
|
||||
*Defined in [Queries.ts:207](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L207)*
|
||||
|
||||
**Returns:** `Observable`<`u32`>
|
||||
|
||||
___
|
||||
<a id="votingbalance"></a>
|
||||
|
||||
## votingBalance
|
||||
|
||||
▸ **votingBalance**(_address: * `AccountId` | `string`*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[votingBalance](_combined_.apicombined.md#votingbalance)*
|
||||
|
||||
*Defined in [Combined.ts:288](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L288)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| _address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)>
|
||||
|
||||
___
|
||||
<a id="votingbalances"></a>
|
||||
|
||||
## votingBalances
|
||||
|
||||
▸ **votingBalances**(...addresses: *`Array`< `AccountId` | `string`>*): `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)[]>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[votingBalances](_combined_.apicombined.md#votingbalances)*
|
||||
|
||||
*Defined in [Combined.ts:322](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L322)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` addresses | `Array`< `AccountId` | `string`> |
|
||||
|
||||
**Returns:** `Observable`<[RxBalance](../modules/_types_d_.md#rxbalance)[]>
|
||||
|
||||
___
|
||||
<a id="votingbalancesnominatorsfor"></a>
|
||||
|
||||
## votingBalancesNominatorsFor
|
||||
|
||||
▸ **votingBalancesNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`any`>
|
||||
|
||||
*Inherited from [ApiCombined](_combined_.apicombined.md).[votingBalancesNominatorsFor](_combined_.apicombined.md#votingbalancesnominatorsfor)*
|
||||
|
||||
*Defined in [Combined.ts:311](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Combined.ts#L311)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`any`>
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,517 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
[ApiBase](_base_.apibase.md)
|
||||
|
||||
**↳ ApiQueries**
|
||||
|
||||
↳ [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiQueries**(api: *`RxApiInterface`*): [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RxApiInterface` |
|
||||
|
||||
**Returns:** [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="api"></a>
|
||||
|
||||
## `<Protected>` api
|
||||
|
||||
**● api**: *`RxApiInterface`*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[api](_base_.apibase.md#api)*
|
||||
|
||||
*Defined in [Base.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L22)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="combine"></a>
|
||||
|
||||
## `<Protected>` combine
|
||||
|
||||
▸ **combine**<`T`,`R`>(observables: *`Array`<`Observable`<`any`>>*, mapfn?: *`MapFn`<`R`, `T`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[combine](_base_.apibase.md#combine)*
|
||||
|
||||
*Defined in [Base.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L28)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
#### R
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| observables | `Array`<`Observable`<`any`>> | - |
|
||||
| `Default value` mapfn | `MapFn`<`R`, `T`> | defaultMapFn |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="democacyvoteof"></a>
|
||||
|
||||
## democacyVoteOf
|
||||
|
||||
▸ **democacyVoteOf**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`<`Bool`>
|
||||
|
||||
*Defined in [Queries.ts:76](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Bool`>
|
||||
|
||||
___
|
||||
<a id="democacyvotersfor"></a>
|
||||
|
||||
## democacyVotersFor
|
||||
|
||||
▸ **democacyVotersFor**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:80](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L80)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L19)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:23](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L23)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyproposaldeposits"></a>
|
||||
|
||||
## democracyProposalDeposits
|
||||
|
||||
▸ **democracyProposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracypublicproposals"></a>
|
||||
|
||||
## democracyPublicProposals
|
||||
|
||||
▸ **democracyPublicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Defined in [Queries.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L40)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="democracyreferendumcount"></a>
|
||||
|
||||
## democracyReferendumCount
|
||||
|
||||
▸ **democracyReferendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:59](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L59)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyreferenduminfoof"></a>
|
||||
|
||||
## democracyReferendumInfoOf
|
||||
|
||||
▸ **democracyReferendumInfoOf**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxReferendum](_classes_.rxreferendum.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:91](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:116](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L116)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
*Defined in [Queries.ts:95](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L95)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_d_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L36)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L40)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: *`StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:52](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L52)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `StorageFunction` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Base.ts#L63)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:128](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L128)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:132](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L132)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:136](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L136)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:140](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L140)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:120](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L120)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:124](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L124)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:148](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L148)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:144](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L144)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingfreebalanceof"></a>
|
||||
|
||||
## stakingFreeBalanceOf
|
||||
|
||||
▸ **stakingFreeBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:171](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L171)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:159](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L159)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:186](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L186)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:175](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L175)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingreservedbalanceof"></a>
|
||||
|
||||
## stakingReservedBalanceOf
|
||||
|
||||
▸ **stakingReservedBalanceOf**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:191](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L191)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemaccountindexof"></a>
|
||||
|
||||
## systemAccountIndexOf
|
||||
|
||||
▸ **systemAccountIndexOf**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:203](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L203)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampblockperiod"></a>
|
||||
|
||||
## timestampBlockPeriod
|
||||
|
||||
▸ **timestampBlockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:195](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L195)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="timestampnow"></a>
|
||||
|
||||
## timestampNow
|
||||
|
||||
▸ **timestampNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:199](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L199)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`<`u32`>
|
||||
|
||||
*Defined in [Queries.ts:207](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/Queries.ts#L207)*
|
||||
|
||||
**Returns:** `Observable`<`u32`>
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiBase](../classes/_base_.apibase.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiCalls](../classes/_calls_.apicalls.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [RxProposal](../classes/_classes_.rxproposal.md)
|
||||
* [RxProposalDeposits](../classes/_classes_.rxproposaldeposits.md)
|
||||
* [RxReferendum](../classes/_classes_.rxreferendum.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiCombined](../classes/_combined_.apicombined.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [Api](../classes/_index_.api.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiQueries](../classes/_queries_.apiqueries.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="apifunctions"></a>
|
||||
|
||||
## ApiFunctions
|
||||
|
||||
**Ƭ ApiFunctions**: * `keyof ApiBase` | `keyof ApiCalls` | `keyof ApiCombined` | `keyof ApiQueries`
|
||||
*
|
||||
|
||||
*Defined in [types.d.ts:14](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/types.d.ts#L14)*
|
||||
|
||||
___
|
||||
<a id="rxbalance"></a>
|
||||
|
||||
## RxBalance
|
||||
|
||||
**Ƭ RxBalance**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:16](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/types.d.ts#L16)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="rxbalancemap"></a>
|
||||
|
||||
## RxBalanceMap
|
||||
|
||||
**Ƭ RxBalanceMap**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/types.d.ts#L40)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
[index: `string`]: [RxBalance](_types_d_.md#rxbalance)
|
||||
|
||||
___
|
||||
<a id="rxfees"></a>
|
||||
|
||||
## RxFees
|
||||
|
||||
**Ƭ RxFees**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/types.d.ts#L26)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="rxreferendumvote"></a>
|
||||
|
||||
## RxReferendumVote
|
||||
|
||||
**Ƭ RxReferendumVote**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:34](https://github.com/polkadot-js/api/blob/782bb80/packages/api-observable/src/types.d.ts#L34)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -383,7 +383,7 @@
|
||||
<p><a id="constructor"></a></p>
|
||||
<h2 id="constructor">constructor</h2>
|
||||
<p>⊕ <strong>new HttpProvider</strong>(endpoint: <em><code>string</code></em>): <a href="_http_index_.httpprovider.html">HttpProvider</a></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L35" target="_blank">http/index.ts:35</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L35" target="_blank">http/index.ts:35</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -406,7 +406,7 @@
|
||||
<h2 id="isconnected">isConnected</h2>
|
||||
<p>▸ <strong>isConnected</strong>(): <code>boolean</code></p>
|
||||
<p><em>Implementation of <a href="../interfaces/_types_d_.providerinterface.md">ProviderInterface</a>.<a href="../interfaces/_types_d_.providerinterface.md#isconnected">isConnected</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L49" target="_blank">http/index.ts:49</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L49" target="_blank">http/index.ts:49</a></em></p>
|
||||
<p>Whether the node is connected or not.</p>
|
||||
<p><strong>Returns:</strong> <code>boolean</code>
|
||||
true if connected</p>
|
||||
@@ -415,7 +415,7 @@ true if connected</p>
|
||||
<h2 id="on">on</h2>
|
||||
<p>▸ <strong>on</strong>(type: <em><a href="../modules/_types_d_.md#providerinterface_emitted">ProviderInterface$Emitted</a></em>, sub: <em><a href="../modules/_types_d_.md#providerinterface_emitcb">ProviderInterface$EmitCb</a></em>): <code>void</code></p>
|
||||
<p><em>Implementation of <a href="../interfaces/_types_d_.providerinterface.md">ProviderInterface</a>.<a href="../interfaces/_types_d_.providerinterface.md#on">on</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L56" target="_blank">http/index.ts:56</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L56" target="_blank">http/index.ts:56</a></em></p>
|
||||
<p>Events are not supported with the HttpProvider, see <a href="_ws_index_.wsprovider.html">WsProvider</a>.</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -442,7 +442,7 @@ true if connected</p>
|
||||
<h2 id="send">send</h2>
|
||||
<p>▸ <strong>send</strong>(method: <em><code>string</code></em>, params: <em><code>Array</code><<code>any</code>></em>): <code>Promise</code><<code>any</code>></p>
|
||||
<p><em>Implementation of <a href="../interfaces/_types_d_.providerinterface.md">ProviderInterface</a>.<a href="../interfaces/_types_d_.providerinterface.md#send">send</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L60" target="_blank">http/index.ts:60</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L60" target="_blank">http/index.ts:60</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -468,7 +468,7 @@ true if connected</p>
|
||||
<h2 id="subscribe">subscribe</h2>
|
||||
<p>▸ <strong>subscribe</strong>(types: <em><code>string</code></em>, method: <em><code>string</code></em>, params: <em><code>Array</code><<code>any</code>></em>, cb: <em><a href="../modules/_types_d_.md#providerinterface_callback">ProviderInterface$Callback</a></em>): <code>Promise</code><<code>number</code>></p>
|
||||
<p><em>Implementation of <a href="../interfaces/_types_d_.providerinterface.md">ProviderInterface</a>.<a href="../interfaces/_types_d_.providerinterface.md#subscribe">subscribe</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L82" target="_blank">http/index.ts:82</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L82" target="_blank">http/index.ts:82</a></em></p>
|
||||
<p>Subscriptions are not supported with the HttpProvider, see <a href="_ws_index_.wsprovider.html">WsProvider</a>.</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -503,7 +503,7 @@ true if connected</p>
|
||||
<h2 id="unsubscribe">unsubscribe</h2>
|
||||
<p>▸ <strong>unsubscribe</strong>(type: <em><code>string</code></em>, method: <em><code>string</code></em>, id: <em><code>number</code></em>): <code>Promise</code><<code>boolean</code>></p>
|
||||
<p><em>Implementation of <a href="../interfaces/_types_d_.providerinterface.md">ProviderInterface</a>.<a href="../interfaces/_types_d_.providerinterface.md#unsubscribe">unsubscribe</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L91" target="_blank">http/index.ts:91</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L91" target="_blank">http/index.ts:91</a></em></p>
|
||||
<p>Subscriptions are not supported with the HttpProvider, see <a href="_ws_index_.wsprovider.html">WsProvider</a>.</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -573,7 +573,7 @@ true if connected</p>
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"HttpProvider","level":"1.3.1","depth":2,"next":{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]},"previous":{"title":"api-provider","level":"1.3","depth":1,"path":"api-provider/README.md","ref":"api-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/classes/_http_index_.httpprovider.md","mtime":"2018-10-01T08:48:20.718Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"HttpProvider","level":"1.3.1","depth":2,"next":{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]},"previous":{"title":"api-provider","level":"1.3","depth":1,"path":"api-provider/README.md","ref":"api-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/classes/_http_index_.httpprovider.md","mtime":"2018-10-01T09:27:23.551Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ const provider = new WsProvider('[http://127.0.0.1:9933')](http://127.0.0.1:9933
|
||||
|
||||
⊕ **new HttpProvider**(endpoint: *`string`*): [HttpProvider](_http_index_.httpprovider.md)
|
||||
|
||||
*Defined in [http/index.ts:35](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L35)*
|
||||
*Defined in [http/index.ts:35](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L35)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -45,7 +45,7 @@ ___
|
||||
|
||||
*Implementation of [ProviderInterface](../interfaces/_types_d_.providerinterface.md).[isConnected](../interfaces/_types_d_.providerinterface.md#isconnected)*
|
||||
|
||||
*Defined in [http/index.ts:49](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L49)*
|
||||
*Defined in [http/index.ts:49](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L49)*
|
||||
|
||||
Whether the node is connected or not.
|
||||
|
||||
@@ -61,7 +61,7 @@ ___
|
||||
|
||||
*Implementation of [ProviderInterface](../interfaces/_types_d_.providerinterface.md).[on](../interfaces/_types_d_.providerinterface.md#on)*
|
||||
|
||||
*Defined in [http/index.ts:56](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L56)*
|
||||
*Defined in [http/index.ts:56](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L56)*
|
||||
|
||||
Events are not supported with the HttpProvider, see [WsProvider](_ws_index_.wsprovider.md).
|
||||
|
||||
@@ -83,7 +83,7 @@ ___
|
||||
|
||||
*Implementation of [ProviderInterface](../interfaces/_types_d_.providerinterface.md).[send](../interfaces/_types_d_.providerinterface.md#send)*
|
||||
|
||||
*Defined in [http/index.ts:60](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L60)*
|
||||
*Defined in [http/index.ts:60](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L60)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -103,7 +103,7 @@ ___
|
||||
|
||||
*Implementation of [ProviderInterface](../interfaces/_types_d_.providerinterface.md).[subscribe](../interfaces/_types_d_.providerinterface.md#subscribe)*
|
||||
|
||||
*Defined in [http/index.ts:82](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L82)*
|
||||
*Defined in [http/index.ts:82](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L82)*
|
||||
|
||||
Subscriptions are not supported with the HttpProvider, see [WsProvider](_ws_index_.wsprovider.md).
|
||||
|
||||
@@ -127,7 +127,7 @@ ___
|
||||
|
||||
*Implementation of [ProviderInterface](../interfaces/_types_d_.providerinterface.md).[unsubscribe](../interfaces/_types_d_.providerinterface.md#unsubscribe)*
|
||||
|
||||
*Defined in [http/index.ts:91](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/index.ts#L91)*
|
||||
*Defined in [http/index.ts:91](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/index.ts#L91)*
|
||||
|
||||
Subscriptions are not supported with the HttpProvider, see [WsProvider](_ws_index_.wsprovider.md).
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@
|
||||
<p><a id="constructor"></a></p>
|
||||
<h2 id="constructor">constructor</h2>
|
||||
<p>⊕ <strong>new WsProvider</strong>(endpoint: <em><code>string</code></em>, autoConnect?: <em><code>boolean</code></em>): <a href="_ws_index_.wsprovider.html">WsProvider</a></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L67" target="_blank">ws/index.ts:67</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L67" target="_blank">ws/index.ts:67</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -455,7 +455,7 @@
|
||||
<p><a id="connect"></a></p>
|
||||
<h2 id="connect">connect</h2>
|
||||
<p>▸ <strong>connect</strong>(): <code>void</code></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L97" target="_blank">ws/index.ts:97</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L97" target="_blank">ws/index.ts:97</a></em></p>
|
||||
<p>The <a href="_ws_index_.wsprovider.html">WsProvider</a> connects automatically by default. if you decided otherwise, you may connect manually using this method.</p>
|
||||
<p><strong>Returns:</strong> <code>void</code></p>
|
||||
<hr>
|
||||
@@ -497,7 +497,7 @@
|
||||
<p><a id="isconnected"></a></p>
|
||||
<h2 id="isconnected">isConnected</h2>
|
||||
<p>▸ <strong>isConnected</strong>(): <code>boolean</code></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L114" target="_blank">ws/index.ts:114</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L114" target="_blank">ws/index.ts:114</a></em></p>
|
||||
<p>Whether the node is connected or not.</p>
|
||||
<p><strong>Returns:</strong> <code>boolean</code>
|
||||
true if connected</p>
|
||||
@@ -586,7 +586,7 @@ true if connected</p>
|
||||
<h2 id="on">on</h2>
|
||||
<p>▸ <strong>on</strong>(type: <em><a href="../modules/_types_d_.md#providerinterface_emitted">ProviderInterface$Emitted</a></em>, sub: <em><a href="../modules/_types_d_.md#providerinterface_emitcb">ProviderInterface$EmitCb</a></em>): <code>this</code></p>
|
||||
<p><em>Overrides EventEmitter.on</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L124" target="_blank">ws/index.ts:124</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L124" target="_blank">ws/index.ts:124</a></em></p>
|
||||
<p>Listens on events after having subscribed using the <a href="_ws_index_.wsprovider.html#subscribe">subscribe</a> function.</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -705,7 +705,7 @@ true if connected</p>
|
||||
<p><a id="send"></a></p>
|
||||
<h2 id="send">send</h2>
|
||||
<p>▸ <strong>send</strong>(method: <em><code>string</code></em>, params: <em><code>Array</code><<code>any</code>></em>, subscription?: <em><code>SubscriptionHandler</code></em>): <code>Promise</code><<code>any</code>></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L128" target="_blank">ws/index.ts:128</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L128" target="_blank">ws/index.ts:128</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -734,7 +734,7 @@ true if connected</p>
|
||||
<p><a id="subscribe"></a></p>
|
||||
<h2 id="subscribe">subscribe</h2>
|
||||
<p>▸ <strong>subscribe</strong>(type: <em><code>string</code></em>, method: <em><code>string</code></em>, params: <em><code>Array</code><<code>any</code>></em>, callback: <em><a href="../modules/_types_d_.md#providerinterface_callback">ProviderInterface$Callback</a></em>): <code>Promise</code><<code>number</code>></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L179" target="_blank">ws/index.ts:179</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L179" target="_blank">ws/index.ts:179</a></em></p>
|
||||
<p>Allows subscribing to a specific event.
|
||||
<em><strong>example</strong></em>: const provider = new WsProvider('ws://127.0.0.1:9944'); const api = createApi(provider);</p>
|
||||
<p>api.state.storage([[storage.balances.freeBalance,</p>
|
||||
@@ -777,7 +777,7 @@ Promise resolving to the dd of the subscription you can use with [[unsubscribe]]
|
||||
<p><a id="unsubscribe"></a></p>
|
||||
<h2 id="unsubscribe">unsubscribe</h2>
|
||||
<p>▸ <strong>unsubscribe</strong>(type: <em><code>string</code></em>, method: <em><code>string</code></em>, id: <em><code>number</code></em>): <code>Promise</code><<code>boolean</code>></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L188" target="_blank">ws/index.ts:188</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L188" target="_blank">ws/index.ts:188</a></em></p>
|
||||
<p>Allows unsubscribing to subscriptions made with <a href="_ws_index_.wsprovider.html#subscribe">subscribe</a>.</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -847,7 +847,7 @@ Promise resolving to the dd of the subscription you can use with [[unsubscribe]]
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"WsProvider","level":"1.3.2","depth":2,"next":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"previous":{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/classes/_ws_index_.wsprovider.md","mtime":"2018-10-01T08:48:20.806Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"WsProvider","level":"1.3.2","depth":2,"next":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"previous":{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/classes/_ws_index_.wsprovider.md","mtime":"2018-10-01T09:27:23.667Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -26,7 +26,7 @@ The WebSocket Provider allows sending requests using WebSocket. Unlike the [Http
|
||||
|
||||
⊕ **new WsProvider**(endpoint: *`string`*, autoConnect?: *`boolean`*): [WsProvider](_ws_index_.wsprovider.md)
|
||||
|
||||
*Defined in [ws/index.ts:67](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L67)*
|
||||
*Defined in [ws/index.ts:67](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -83,7 +83,7 @@ ___
|
||||
|
||||
▸ **connect**(): `void`
|
||||
|
||||
*Defined in [ws/index.ts:97](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L97)*
|
||||
*Defined in [ws/index.ts:97](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L97)*
|
||||
|
||||
The [WsProvider](_ws_index_.wsprovider.md) connects automatically by default. if you decided otherwise, you may connect manually using this method.
|
||||
|
||||
@@ -133,7 +133,7 @@ ___
|
||||
|
||||
▸ **isConnected**(): `boolean`
|
||||
|
||||
*Defined in [ws/index.ts:114](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L114)*
|
||||
*Defined in [ws/index.ts:114](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L114)*
|
||||
|
||||
Whether the node is connected or not.
|
||||
|
||||
@@ -213,7 +213,7 @@ ___
|
||||
|
||||
*Overrides EventEmitter.on*
|
||||
|
||||
*Defined in [ws/index.ts:124](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L124)*
|
||||
*Defined in [ws/index.ts:124](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L124)*
|
||||
|
||||
Listens on events after having subscribed using the [subscribe](_ws_index_.wsprovider.md#subscribe) function.
|
||||
|
||||
@@ -302,7 +302,7 @@ ___
|
||||
|
||||
▸ **send**(method: *`string`*, params: *`Array`<`any`>*, subscription?: *`SubscriptionHandler`*): `Promise`<`any`>
|
||||
|
||||
*Defined in [ws/index.ts:128](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L128)*
|
||||
*Defined in [ws/index.ts:128](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L128)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -321,7 +321,7 @@ ___
|
||||
|
||||
▸ **subscribe**(type: *`string`*, method: *`string`*, params: *`Array`<`any`>*, callback: *[ProviderInterface$Callback](../modules/_types_d_.md#providerinterface_callback)*): `Promise`<`number`>
|
||||
|
||||
*Defined in [ws/index.ts:179](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L179)*
|
||||
*Defined in [ws/index.ts:179](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L179)*
|
||||
|
||||
Allows subscribing to a specific event.
|
||||
*__example__*: const provider = new WsProvider('ws://127.0.0.1:9944'); const api = createApi(provider);
|
||||
@@ -349,7 +349,7 @@ ___
|
||||
|
||||
▸ **unsubscribe**(type: *`string`*, method: *`string`*, id: *`number`*): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [ws/index.ts:188](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/ws/index.ts#L188)*
|
||||
*Defined in [ws/index.ts:188](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/ws/index.ts#L188)*
|
||||
|
||||
Allows unsubscribing to subscriptions made with [subscribe](_ws_index_.wsprovider.md#subscribe).
|
||||
|
||||
|
||||
@@ -426,7 +426,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"api-provider","level":"1.3","depth":1,"next":{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},"previous":{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/README.md","mtime":"2018-10-01T08:48:20.582Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"api-provider","level":"1.3","depth":1,"next":{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},"previous":{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-provider/README.md","mtime":"2018-10-01T09:27:23.339Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
▸ **isConnected**(): `boolean`
|
||||
|
||||
*Defined in [types.d.ts:45](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L45)*
|
||||
*Defined in [types.d.ts:45](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L45)*
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
@@ -27,7 +27,7 @@ ___
|
||||
|
||||
▸ **on**(type: *[ProviderInterface$Emitted](../modules/_types_d_.md#providerinterface_emitted)*, sub: *[ProviderInterface$EmitCb](../modules/_types_d_.md#providerinterface_emitcb)*): `void`
|
||||
|
||||
*Defined in [types.d.ts:46](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L46)*
|
||||
*Defined in [types.d.ts:46](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -45,7 +45,7 @@ ___
|
||||
|
||||
▸ **send**(method: *`string`*, params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [types.d.ts:47](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L47)*
|
||||
*Defined in [types.d.ts:47](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L47)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -63,7 +63,7 @@ ___
|
||||
|
||||
▸ **subscribe**(type: *`string`*, method: *`string`*, params: *`Array`<`any`>*, cb: *[ProviderInterface$Callback](../modules/_types_d_.md#providerinterface_callback)*): `Promise`<`number`>
|
||||
|
||||
*Defined in [types.d.ts:48](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L48)*
|
||||
*Defined in [types.d.ts:48](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L48)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -83,7 +83,7 @@ ___
|
||||
|
||||
▸ **unsubscribe**(type: *`string`*, method: *`string`*, id: *`number`*): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [types.d.ts:49](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L49)*
|
||||
*Defined in [types.d.ts:49](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L49)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decodeResponse**(self: *[RpcCoderState](_coder_json_types_d_.md#rpccoderstate)*, response: *[JsonRpcResponse](_types_d_.md#jsonrpcresponse)*): `any`
|
||||
|
||||
*Defined in [coder/json/decodeResponse.ts:22](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/decodeResponse.ts#L22)*
|
||||
*Defined in [coder/json/decodeResponse.ts:22](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/decodeResponse.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encodeJson**(self: *[RpcCoderState](_coder_json_types_d_.md#rpccoderstate)*, method: *`string`*, params: *`Array`<`any`>*): `string`
|
||||
|
||||
*Defined in [coder/json/encodeJson.ts:9](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/encodeJson.ts#L9)*
|
||||
*Defined in [coder/json/encodeJson.ts:9](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/encodeJson.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encodeObject**(self: *[RpcCoderState](_coder_json_types_d_.md#rpccoderstate)*, method: *`string`*, params: *`Array`<`any`>*): [JsonRpcRequest](_types_d_.md#jsonrpcrequest)
|
||||
|
||||
*Defined in [coder/json/encodeObject.ts:8](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/encodeObject.ts#L8)*
|
||||
*Defined in [coder/json/encodeObject.ts:8](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/encodeObject.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **rpcCoder**(): [RpcCoder](_coder_json_types_d_.md#rpccoder)
|
||||
|
||||
*Defined in [coder/json/index.ts:12](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/index.ts#L12)*
|
||||
*Defined in [coder/json/index.ts:12](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/index.ts#L12)*
|
||||
|
||||
**Returns:** [RpcCoder](_coder_json_types_d_.md#rpccoder)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ RpcCoder**: *`object`*
|
||||
|
||||
*Defined in [coder/json/types.d.ts:7](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/types.d.ts#L7)*
|
||||
*Defined in [coder/json/types.d.ts:7](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/types.d.ts#L7)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -19,7 +19,7 @@ ___
|
||||
|
||||
**Ƭ RpcCoderState**: *`object`*
|
||||
|
||||
*Defined in [coder/json/types.d.ts:14](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/coder/json/types.d.ts#L14)*
|
||||
*Defined in [coder/json/types.d.ts:14](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/coder/json/types.d.ts#L14)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ HttpState**: *`object`*
|
||||
|
||||
*Defined in [http/types.d.ts:8](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/http/types.d.ts#L8)*
|
||||
*Defined in [http/types.d.ts:8](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/http/types.d.ts#L8)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mockProvider**(): [ProviderInterface](../interfaces/_types_d_.providerinterface.md)
|
||||
|
||||
*Defined in [mock/index.ts:18](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/index.ts#L18)*
|
||||
*Defined in [mock/index.ts:18](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/index.ts#L18)*
|
||||
|
||||
A moock provider mainly used for testing.
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mocks**(__namedParameters: *`object`*): `void`
|
||||
|
||||
*Defined in [mock/mocks.ts:63](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/mocks.ts#L63)*
|
||||
*Defined in [mock/mocks.ts:63](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/mocks.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **on**(self: *[MockState](_mock_types_d_.md#mockstate)*, type: *[ProviderInterface$Emitted](_types_d_.md#providerinterface_emitted)*, sub: *[ProviderInterface$EmitCb](_types_d_.md#providerinterface_emitcb)*): `void`
|
||||
|
||||
*Defined in [mock/on.ts:8](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/on.ts#L8)*
|
||||
*Defined in [mock/on.ts:8](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/on.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **send**(__namedParameters: *`object`*, method: *`string`*, params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [mock/send.ts:7](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/send.ts#L7)*
|
||||
*Defined in [mock/send.ts:7](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/send.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **state**(): [MockState](_mock_types_d_.md#mockstate)
|
||||
|
||||
*Defined in [mock/state.ts:38](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/state.ts#L38)*
|
||||
*Defined in [mock/state.ts:38](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/state.ts#L38)*
|
||||
|
||||
**Returns:** [MockState](_mock_types_d_.md#mockstate)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **subscribe**(self: *[MockState](_mock_types_d_.md#mockstate)*, type: *`string`*, method: *`string`*, params: *`Array`<`any`>*): `Promise`<`number`>
|
||||
|
||||
*Defined in [mock/subscribe.ts:7](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/subscribe.ts#L7)*
|
||||
*Defined in [mock/subscribe.ts:7](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/subscribe.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ MockState**: *`object`*
|
||||
|
||||
*Defined in [mock/types.d.ts:27](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/types.d.ts#L27)*
|
||||
*Defined in [mock/types.d.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/types.d.ts#L27)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -19,7 +19,7 @@ ___
|
||||
|
||||
**Ƭ MockState$Db**: *`object`*
|
||||
|
||||
*Defined in [mock/types.d.ts:19](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/types.d.ts#L19)*
|
||||
*Defined in [mock/types.d.ts:19](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/types.d.ts#L19)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -32,7 +32,7 @@ ___
|
||||
|
||||
**Ƭ MockState$Requests**: *`object`*
|
||||
|
||||
*Defined in [mock/types.d.ts:23](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/types.d.ts#L23)*
|
||||
*Defined in [mock/types.d.ts:23](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/types.d.ts#L23)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -56,7 +56,7 @@ ___
|
||||
|
||||
**Ƭ MockState$Subscription$Callback**: *`function`*
|
||||
|
||||
*Defined in [mock/types.d.ts:8](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/types.d.ts#L8)*
|
||||
*Defined in [mock/types.d.ts:8](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/types.d.ts#L8)*
|
||||
|
||||
#### Type declaration
|
||||
▸(error: * `Error` | `null`*, value: *`any`*): `void`
|
||||
@@ -77,7 +77,7 @@ ___
|
||||
|
||||
**Ƭ MockState$Subscriptions**: *`object`*
|
||||
|
||||
*Defined in [mock/types.d.ts:10](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/types.d.ts#L10)*
|
||||
*Defined in [mock/types.d.ts:10](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/types.d.ts#L10)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **unsubscribe**(self: *[MockState](_mock_types_d_.md#mockstate)*, type: *`string`*, name: *`string`*, id: *`number`*): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [mock/unsubscribe.ts:7](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/mock/unsubscribe.ts#L7)*
|
||||
*Defined in [mock/unsubscribe.ts:7](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/mock/unsubscribe.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ JsonRpcObject**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:5](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L5)*
|
||||
*Defined in [types.d.ts:5](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -20,7 +20,7 @@ ___
|
||||
**Ƭ JsonRpcRequest**: * [JsonRpcObject](_types_d_.md#jsonrpcobject) & `object`
|
||||
*
|
||||
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L10)*
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L10)*
|
||||
|
||||
___
|
||||
<a id="jsonrpcresponse"></a>
|
||||
@@ -30,7 +30,7 @@ ___
|
||||
**Ƭ JsonRpcResponse**: * [JsonRpcObject](_types_d_.md#jsonrpcobject) & [JsonRpcResponseBase](_types_d_.md#jsonrpcresponsebase)
|
||||
*
|
||||
|
||||
*Defined in [types.d.ts:36](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L36)*
|
||||
*Defined in [types.d.ts:36](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L36)*
|
||||
|
||||
___
|
||||
<a id="jsonrpcresponsebase"></a>
|
||||
@@ -40,7 +40,7 @@ ___
|
||||
**Ƭ JsonRpcResponseBase**: * `JsonRpcResponse$Single` & `JsonRpcResponse$Subscription`
|
||||
*
|
||||
|
||||
*Defined in [types.d.ts:34](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L34)*
|
||||
*Defined in [types.d.ts:34](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L34)*
|
||||
|
||||
___
|
||||
<a id="jsonrpcresponsebase_error"></a>
|
||||
@@ -49,7 +49,7 @@ ___
|
||||
|
||||
**Ƭ JsonRpcResponseBase$Error**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:15](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L15)*
|
||||
*Defined in [types.d.ts:15](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L15)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
**Ƭ ProviderInterface$Callback**: *`function`*
|
||||
|
||||
*Defined in [types.d.ts:38](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L38)*
|
||||
*Defined in [types.d.ts:38](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L38)*
|
||||
|
||||
#### Type declaration
|
||||
▸(error: * `Error` | `null`*, result: *`any`*): `void`
|
||||
@@ -81,7 +81,7 @@ ___
|
||||
|
||||
**Ƭ ProviderInterface$EmitCb**: *`function`*
|
||||
|
||||
*Defined in [types.d.ts:42](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L42)*
|
||||
*Defined in [types.d.ts:42](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L42)*
|
||||
|
||||
#### Type declaration
|
||||
▸(value?: *`any`*): `any`
|
||||
@@ -102,7 +102,7 @@ ___
|
||||
**Ƭ ProviderInterface$Emitted**: * "connected" | "disconnected"
|
||||
*
|
||||
|
||||
*Defined in [types.d.ts:40](https://github.com/polkadot-js/api/blob/8840f33/packages/api-provider/src/types.d.ts#L40)*
|
||||
*Defined in [types.d.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-provider/src/types.d.ts#L40)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -376,13 +376,13 @@
|
||||
<p><strong>RxApi</strong></p>
|
||||
<h1 id="implements">Implements</h1>
|
||||
<ul>
|
||||
<li><code>object</code> & <code>object</code></li>
|
||||
<li><code>object</code></li>
|
||||
</ul>
|
||||
<h1 id="constructors">Constructors</h1>
|
||||
<p><a id="constructor"></a></p>
|
||||
<h2 id="constructor">constructor</h2>
|
||||
<p>⊕ <strong>new RxApi</strong>(provider?: <em><code>ProviderInterface</code></em>): <a href="_index_.rxapi.html">RxApi</a></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L40" target="_blank">index.ts:40</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L40" target="_blank">index.ts:40</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -408,28 +408,28 @@
|
||||
<p><a id="author"></a></p>
|
||||
<h2 id="author">author</h2>
|
||||
<p><strong>● author</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L37" target="_blank">index.ts:37</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L37" target="_blank">index.ts:37</a></em></p>
|
||||
<hr>
|
||||
<p><a id="chain"></a></p>
|
||||
<h2 id="chain">chain</h2>
|
||||
<p><strong>● chain</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L38" target="_blank">index.ts:38</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L38" target="_blank">index.ts:38</a></em></p>
|
||||
<hr>
|
||||
<p><a id="state"></a></p>
|
||||
<h2 id="state">state</h2>
|
||||
<p><strong>● state</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L39" target="_blank">index.ts:39</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L39" target="_blank">index.ts:39</a></em></p>
|
||||
<hr>
|
||||
<p><a id="system"></a></p>
|
||||
<h2 id="system">system</h2>
|
||||
<p><strong>● system</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L40" target="_blank">index.ts:40</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L40" target="_blank">index.ts:40</a></em></p>
|
||||
<hr>
|
||||
<h1 id="methods">Methods</h1>
|
||||
<p><a id="isconnected"></a></p>
|
||||
<h2 id="isconnected">isConnected</h2>
|
||||
<p>▸ <strong>isConnected</strong>(): <code>BehaviorSubject</code><<code>boolean</code>></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L59" target="_blank">index.ts:59</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L59" target="_blank">index.ts:59</a></em></p>
|
||||
<p><strong>Returns:</strong> <code>BehaviorSubject</code><<code>boolean</code>></p>
|
||||
<hr>
|
||||
|
||||
@@ -475,7 +475,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.4.1","depth":2,"next":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"previous":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/classes/_index_.rxapi.md","mtime":"2018-10-01T08:48:28.694Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.4.1","depth":2,"next":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"previous":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/classes/_index_.rxapi.md","mtime":"2018-10-01T09:27:34.595Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ const provider = new WsProvider('[http://127.0.0.1:9944')](http://127.0.0.1:9944
|
||||
|
||||
# Implements
|
||||
|
||||
* `object` & `object`
|
||||
* `object`
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -21,7 +21,7 @@ const provider = new WsProvider('[http://127.0.0.1:9944')](http://127.0.0.1:9944
|
||||
|
||||
⊕ **new RxApi**(provider?: *`ProviderInterface`*): [RxApi](_index_.rxapi.md)
|
||||
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L40)*
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L40)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -41,7 +41,7 @@ ___
|
||||
|
||||
**● author**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:37](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L37)*
|
||||
*Defined in [index.ts:37](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L37)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
@@ -50,7 +50,7 @@ ___
|
||||
|
||||
**● chain**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:38](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L38)*
|
||||
*Defined in [index.ts:38](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L38)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
@@ -59,7 +59,7 @@ ___
|
||||
|
||||
**● state**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L39)*
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L39)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
@@ -68,7 +68,7 @@ ___
|
||||
|
||||
**● system**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L40)*
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L40)*
|
||||
|
||||
___
|
||||
|
||||
@@ -80,7 +80,7 @@ ___
|
||||
|
||||
▸ **isConnected**(): `BehaviorSubject`<`boolean`>
|
||||
|
||||
*Defined in [index.ts:59](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/index.ts#L59)*
|
||||
*Defined in [index.ts:59](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/index.ts#L59)*
|
||||
|
||||
**Returns:** `BehaviorSubject`<`boolean`>
|
||||
|
||||
|
||||
@@ -415,7 +415,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"api-rx","level":"1.4","depth":1,"next":{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]},"previous":{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/README.md","mtime":"2018-10-01T08:48:28.602Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"api-rx","level":"1.4","depth":1,"next":{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]},"previous":{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/README.md","mtime":"2018-10-01T09:27:34.495Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -6,10 +6,11 @@
|
||||
|
||||
## RxApiInterface
|
||||
|
||||
**Ƭ RxApiInterface**: * `RxApiInterface$Keys` & `object`
|
||||
*
|
||||
**Ƭ RxApiInterface**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:19](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/types.d.ts#L19)*
|
||||
*Defined in [types.d.ts:15](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/types.d.ts#L15)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="rxapiinterface_method"></a>
|
||||
@@ -18,7 +19,7 @@ ___
|
||||
|
||||
**Ƭ RxApiInterface$Method**: *`function`*
|
||||
|
||||
*Defined in [types.d.ts:9](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/types.d.ts#L9)*
|
||||
*Defined in [types.d.ts:9](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/types.d.ts#L9)*
|
||||
|
||||
#### Type declaration
|
||||
▸(...params: *`Array`<`any`>*): `Observable`<`any`> | `BehaviorSubject`<`any`>
|
||||
@@ -38,7 +39,7 @@ ___
|
||||
|
||||
**Ƭ RxApiInterface$Section**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/8840f33/packages/api-rx/src/types.d.ts#L11)*
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/782bb80/packages/api-rx/src/types.d.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
<p><a id="constructor"></a></p>
|
||||
<h2 id="constructor">constructor</h2>
|
||||
<p>⊕ <strong>new Api</strong>(provider: <em><code>ProviderInterface</code></em>): <a href="_index_.api.html">Api</a></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L29" target="_blank">index.ts:29</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L29" target="_blank">index.ts:29</a></em></p>
|
||||
<p><em><strong>constructor</strong></em>: Default constructor for the Api Object</p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
@@ -406,28 +406,28 @@
|
||||
<p><a id="author"></a></p>
|
||||
<h2 id="author">author</h2>
|
||||
<p><strong>● author</strong>: <em><a href="../modules/_types_d_.md#apiinterface_section">ApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L26" target="_blank">index.ts:26</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L26" target="_blank">index.ts:26</a></em></p>
|
||||
<hr>
|
||||
<p><a id="chain"></a></p>
|
||||
<h2 id="chain">chain</h2>
|
||||
<p><strong>● chain</strong>: <em><a href="../modules/_types_d_.md#apiinterface_section">ApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L27" target="_blank">index.ts:27</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L27" target="_blank">index.ts:27</a></em></p>
|
||||
<hr>
|
||||
<p><a id="state"></a></p>
|
||||
<h2 id="state">state</h2>
|
||||
<p><strong>● state</strong>: <em><a href="../modules/_types_d_.md#apiinterface_section">ApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L28" target="_blank">index.ts:28</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L28" target="_blank">index.ts:28</a></em></p>
|
||||
<hr>
|
||||
<p><a id="system"></a></p>
|
||||
<h2 id="system">system</h2>
|
||||
<p><strong>● system</strong>: <em><a href="../modules/_types_d_.md#apiinterface_section">ApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L29" target="_blank">index.ts:29</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L29" target="_blank">index.ts:29</a></em></p>
|
||||
<hr>
|
||||
<h1 id="methods">Methods</h1>
|
||||
<p><a id="signature"></a></p>
|
||||
<h2 id="static-signature"><code><Static></code> signature</h2>
|
||||
<p>▸ <strong>signature</strong>(__namedParameters: <em><code>object</code></em>): <code>string</code></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L58" target="_blank">index.ts:58</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L58" target="_blank">index.ts:58</a></em></p>
|
||||
<p><em><strong>name</strong></em>: signature</p>
|
||||
<p><em><strong>signature</strong></em>: jsonrpcSignature (method: InterfaceMethodDefinition): string</p>
|
||||
<p><em><strong>summary</strong></em>: Returns a string representation of the method with inputs and outputs.</p>
|
||||
@@ -494,7 +494,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Api","level":"1.2.1","depth":2,"next":{"title":"api-provider","level":"1.3","depth":1,"path":"api-provider/README.md","ref":"api-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"previous":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api/classes/_index_.api.md","mtime":"2018-10-01T08:48:12.634Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Api","level":"1.2.1","depth":2,"next":{"title":"api-provider","level":"1.3","depth":1,"path":"api-provider/README.md","ref":"api-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"api-provider/classes/_http_index_.httpprovider.md","ref":"api-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"api-provider/classes/_ws_index_.wsprovider.md","ref":"api-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"previous":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api/classes/_index_.api.md","mtime":"2018-10-01T09:27:04.932Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@ const provider = new WsProvider('[http://127.0.0.1:9944')](http://127.0.0.1:9944
|
||||
|
||||
⊕ **new Api**(provider: *`ProviderInterface`*): [Api](_index_.api.md)
|
||||
|
||||
*Defined in [index.ts:29](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L29)*
|
||||
*Defined in [index.ts:29](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L29)*
|
||||
|
||||
*__constructor__*: Default constructor for the Api Object
|
||||
|
||||
@@ -42,7 +42,7 @@ ___
|
||||
|
||||
**● author**: *[ApiInterface$Section](../modules/_types_d_.md#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:26](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L26)*
|
||||
*Defined in [index.ts:26](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L26)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
@@ -51,7 +51,7 @@ ___
|
||||
|
||||
**● chain**: *[ApiInterface$Section](../modules/_types_d_.md#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:27](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L27)*
|
||||
*Defined in [index.ts:27](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L27)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
**● state**: *[ApiInterface$Section](../modules/_types_d_.md#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:28](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L28)*
|
||||
*Defined in [index.ts:28](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L28)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
@@ -69,7 +69,7 @@ ___
|
||||
|
||||
**● system**: *[ApiInterface$Section](../modules/_types_d_.md#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:29](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L29)*
|
||||
*Defined in [index.ts:29](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L29)*
|
||||
|
||||
___
|
||||
|
||||
@@ -81,7 +81,7 @@ ___
|
||||
|
||||
▸ **signature**(__namedParameters: *`object`*): `string`
|
||||
|
||||
*Defined in [index.ts:58](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/index.ts#L58)*
|
||||
*Defined in [index.ts:58](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/index.ts#L58)*
|
||||
|
||||
*__name__*: signature
|
||||
|
||||
|
||||
+1
-1
@@ -461,7 +461,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"api","level":"1.2","depth":1,"next":{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api/README.md","mtime":"2018-10-01T08:48:12.506Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"api","level":"1.2","depth":1,"next":{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api/README.md","mtime":"2018-10-01T09:27:04.832Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# Callable
|
||||
▸ **__call**(...params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [types.d.ts:7](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/types.d.ts#L7)*
|
||||
*Defined in [types.d.ts:7](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/types.d.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
**● subscription**: *`string`*
|
||||
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/types.d.ts#L10)*
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/types.d.ts#L10)*
|
||||
|
||||
___
|
||||
<a id="unsubscribe"></a>
|
||||
@@ -34,7 +34,7 @@ ___
|
||||
|
||||
**● unsubscribe**: *`function`*
|
||||
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/types.d.ts#L11)*
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/types.d.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
▸(id: *`number`*): `Promise`<`any`>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ ApiInterface**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:18](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/types.d.ts#L18)*
|
||||
*Defined in [types.d.ts:18](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/types.d.ts#L18)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -19,7 +19,7 @@ ___
|
||||
|
||||
**Ƭ ApiInterface$Section**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:14](https://github.com/polkadot-js/api/blob/8840f33/packages/api/src/types.d.ts#L14)*
|
||||
*Defined in [types.d.ts:14](https://github.com/polkadot-js/api/blob/782bb80/packages/api/src/types.d.ts#L14)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -431,7 +431,7 @@ main().finally(_ => process.exit());
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Simple connect","level":"2.2","depth":1,"next":{"title":"Listen to blocks","level":"2.3","depth":1,"path":"examples/02_listen_to_blocks/README.md","ref":"examples/02_listen_to_blocks/README.md","articles":[]},"previous":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/01_simple_connect/README.md","mtime":"2018-10-01T08:43:33.949Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Simple connect","level":"2.2","depth":1,"next":{"title":"Listen to blocks","level":"2.3","depth":1,"path":"examples/02_listen_to_blocks/README.md","ref":"examples/02_listen_to_blocks/README.md","articles":[]},"previous":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/01_simple_connect/README.md","mtime":"2018-10-01T09:23:01.772Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -433,7 +433,7 @@ main();
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Listen to blocks","level":"2.3","depth":1,"next":{"title":"Listen to balance change","level":"2.4","depth":1,"path":"examples/03_listen_to_balance_change/README.md","ref":"examples/03_listen_to_balance_change/README.md","articles":[]},"previous":{"title":"Simple connect","level":"2.2","depth":1,"path":"examples/01_simple_connect/README.md","ref":"examples/01_simple_connect/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/02_listen_to_blocks/README.md","mtime":"2018-10-01T08:43:33.949Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Listen to blocks","level":"2.3","depth":1,"next":{"title":"Listen to balance change","level":"2.4","depth":1,"path":"examples/03_listen_to_balance_change/README.md","ref":"examples/03_listen_to_balance_change/README.md","articles":[]},"previous":{"title":"Simple connect","level":"2.2","depth":1,"path":"examples/01_simple_connect/README.md","ref":"examples/01_simple_connect/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/02_listen_to_blocks/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -432,7 +432,7 @@ api.state
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Listen to balance change","level":"2.4","depth":1,"next":{"title":"Generate Accounts","level":"2.5","depth":1,"path":"examples/04_generate_account/README.md","ref":"examples/04_generate_account/README.md","articles":[]},"previous":{"title":"Listen to blocks","level":"2.3","depth":1,"path":"examples/02_listen_to_blocks/README.md","ref":"examples/02_listen_to_blocks/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/03_listen_to_balance_change/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Listen to balance change","level":"2.4","depth":1,"next":{"title":"Generate Accounts","level":"2.5","depth":1,"path":"examples/04_generate_account/README.md","ref":"examples/04_generate_account/README.md","articles":[]},"previous":{"title":"Listen to blocks","level":"2.3","depth":1,"path":"examples/02_listen_to_blocks/README.md","ref":"examples/02_listen_to_blocks/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/03_listen_to_balance_change/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -447,7 +447,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Generate Accounts","level":"2.5","depth":1,"next":{"title":"Read Storage","level":"2.6","depth":1,"path":"examples/05_read_storage/README.md","ref":"examples/05_read_storage/README.md","articles":[]},"previous":{"title":"Listen to balance change","level":"2.4","depth":1,"path":"examples/03_listen_to_balance_change/README.md","ref":"examples/03_listen_to_balance_change/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/04_generate_account/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Generate Accounts","level":"2.5","depth":1,"next":{"title":"Read Storage","level":"2.6","depth":1,"path":"examples/05_read_storage/README.md","ref":"examples/05_read_storage/README.md","articles":[]},"previous":{"title":"Listen to balance change","level":"2.4","depth":1,"path":"examples/03_listen_to_balance_change/README.md","ref":"examples/03_listen_to_balance_change/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/04_generate_account/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -447,7 +447,7 @@ main().finally(_ => process.exit());
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Read Storage","level":"2.6","depth":1,"next":{"title":"Craft Extrinsic","level":"2.7","depth":1,"path":"examples/06_craft_extrinsic/README.md","ref":"examples/06_craft_extrinsic/README.md","articles":[]},"previous":{"title":"Generate Accounts","level":"2.5","depth":1,"path":"examples/04_generate_account/README.md","ref":"examples/04_generate_account/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/05_read_storage/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Read Storage","level":"2.6","depth":1,"next":{"title":"Craft Extrinsic","level":"2.7","depth":1,"path":"examples/06_craft_extrinsic/README.md","ref":"examples/06_craft_extrinsic/README.md","articles":[]},"previous":{"title":"Generate Accounts","level":"2.5","depth":1,"path":"examples/04_generate_account/README.md","ref":"examples/04_generate_account/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/05_read_storage/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -471,7 +471,7 @@ transfer(Alice, addressBob, amount)
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Craft Extrinsic","level":"2.7","depth":1,"next":{"title":"Transfer DOTs","level":"2.8","depth":1,"path":"examples/07_transfer_dots/README.md","ref":"examples/07_transfer_dots/README.md","articles":[]},"previous":{"title":"Read Storage","level":"2.6","depth":1,"path":"examples/05_read_storage/README.md","ref":"examples/05_read_storage/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/06_craft_extrinsic/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Craft Extrinsic","level":"2.7","depth":1,"next":{"title":"Transfer DOTs","level":"2.8","depth":1,"path":"examples/07_transfer_dots/README.md","ref":"examples/07_transfer_dots/README.md","articles":[]},"previous":{"title":"Read Storage","level":"2.6","depth":1,"path":"examples/05_read_storage/README.md","ref":"examples/05_read_storage/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/06_craft_extrinsic/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -451,7 +451,7 @@ transfer(Alice, addressBob, amount)
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Transfer DOTs","level":"2.8","depth":1,"previous":{"title":"Craft Extrinsic","level":"2.7","depth":1,"path":"examples/06_craft_extrinsic/README.md","ref":"examples/06_craft_extrinsic/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/07_transfer_dots/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Transfer DOTs","level":"2.8","depth":1,"previous":{"title":"Craft Extrinsic","level":"2.7","depth":1,"path":"examples/06_craft_extrinsic/README.md","ref":"examples/06_craft_extrinsic/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/07_transfer_dots/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -427,7 +427,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Overview","level":"2.1","depth":1,"next":{"title":"Simple connect","level":"2.2","depth":1,"path":"examples/01_simple_connect/README.md","ref":"examples/01_simple_connect/README.md","articles":[]},"previous":{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/README.md","mtime":"2018-10-01T08:43:33.953Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Overview","level":"2.1","depth":1,"next":{"title":"Simple connect","level":"2.2","depth":1,"path":"examples/01_simple_connect/README.md","ref":"examples/01_simple_connect/README.md","articles":[]},"previous":{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"examples/README.md","mtime":"2018-10-01T09:23:01.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -447,7 +447,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"README.md","mtime":"2018-10-01T08:43:33.945Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T08:49:14.503Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"Api","level":"1.2.1","depth":2,"path":"api/classes/_index_.api.md","ref":"api/classes/_index_.api.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"README.md","mtime":"2018-10-01T09:23:01.768Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-01T09:28:18.489Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -9,5 +9,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.30.4"
|
||||
"version": "0.30.5"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": "^10.1.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-codec",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-observable",
|
||||
"version": "0.30.3",
|
||||
"version": "0.30.5",
|
||||
"description": "An Observable wrapper around the Polkadot JS API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-rx#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/api": "^0.30.3",
|
||||
"@polkadot/api-provider": "^0.30.3",
|
||||
"@polkadot/api": "^0.30.5",
|
||||
"@polkadot/api-provider": "^0.30.5",
|
||||
"@types/rx": "^4.1.1",
|
||||
"rxjs": "^6.3.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-provider",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/storage": "^0.30.4",
|
||||
"@polkadot/storage": "^0.30.5",
|
||||
"@polkadot/util": "^0.30.7",
|
||||
"@polkadot/util-crypto": "^0.30.7",
|
||||
"@polkadot/util-keyring": "^0.30.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-rx",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "An RxJs wrapper around the Polkadot JS API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-rx#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/api": "^0.30.4",
|
||||
"@polkadot/api-provider": "^0.30.4",
|
||||
"@polkadot/api": "^0.30.5",
|
||||
"@polkadot/api-provider": "^0.30.5",
|
||||
"@types/rx": "^4.1.1",
|
||||
"rxjs": "^6.3.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/api-provider": "^0.30.4",
|
||||
"@polkadot/jsonrpc": "^0.30.4",
|
||||
"@polkadot/api-provider": "^0.30.5",
|
||||
"@polkadot/jsonrpc": "^0.30.5",
|
||||
"@polkadot/util": "^0.30.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/extrinsics",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/api.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/jsonrpc",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "Method definitions for the Polkadot RPC layer",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/storage",
|
||||
"version": "0.30.4",
|
||||
"version": "0.30.5",
|
||||
"description": "Generic wrapper wrapper around state storage",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
@@ -30,7 +30,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"@polkadot/api-codec": "^0.30.4",
|
||||
"@polkadot/api-codec": "^0.30.5",
|
||||
"@polkadot/params": "^0.30.3",
|
||||
"@polkadot/primitives": "^0.30.3",
|
||||
"@polkadot/util": "^0.30.7",
|
||||
|
||||
Reference in New Issue
Block a user