[CI Skip] 0.32.19

This commit is contained in:
Travis CI
2018-12-03 14:59:53 +00:00
parent 1d1832111b
commit 4c60da91bb
215 changed files with 8403 additions and 3244 deletions
+8 -8
View File
@@ -24,7 +24,7 @@
⊕ **new ApiBase**(options: *[ApiOptions](../interfaces/_base_.apioptions.md)*): [ApiBase](_base_.apibase.md)
*Defined in [Base.ts:53](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L53)*
*Defined in [Base.ts:53](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L53)*
*__description__*: Create an instance of the class
@@ -58,7 +58,7 @@ ___
getgenesisHash(): `Hash`
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L88)*
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L88)*
*__description__*: Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions.
@@ -71,7 +71,7 @@ ___
getquery(): `S`
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L126)*
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L126)*
*__description__*: Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata.
@@ -94,7 +94,7 @@ ___
getrpc(): `R`
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L146)*
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L146)*
*__description__*: Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic `api.query` and `api.tx` sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime.
@@ -117,7 +117,7 @@ ___
getruntimeMetadata(): `RuntimeMetadata`
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L97)*
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L97)*
*__description__*: Yields the current attached runtime metadata. Generally this is only used to construct extrinsics & storage, but is useful for current runtime inspection.
@@ -130,7 +130,7 @@ ___
getruntimeVersion(): `RuntimeVersion`
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L106)*
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L106)*
*__description__*: Contains the version information for the current runtime.
@@ -143,7 +143,7 @@ ___
gettx(): `E`
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L165)*
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L165)*
*__description__*: Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata.
@@ -170,7 +170,7 @@ ___
▸ **on**(type: *[ApiInterface$Events](../modules/_types_.md#apiinterface_events)*, handler: *`function`*): `void`
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L190)*
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L190)*
*__description__*: Attach an eventemitter handler to listen to a specific event
@@ -12,7 +12,7 @@
⊕ **new Combinator**(fns: *`Array`<[CombinatorFunction](../modules/_promise_combinator_.md#combinatorfunction)>*, callback: *[CombinatorCallback](../modules/_promise_combinator_.md#combinatorcallback)*): [Combinator](_promise_combinator_.combinator.md)
*Defined in [promise/Combinator.ts:14](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/Combinator.ts#L14)*
*Defined in [promise/Combinator.ts:14](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/Combinator.ts#L14)*
**Parameters:**
@@ -495,7 +495,7 @@
<h2 id="constructor">constructor</h2>
<p>&#x2295; <strong>new ApiPromise</strong>(options?: <em> <a href="../interfaces/_base_.apioptions.md">ApiOptions</a> | <code>WsProvider</code></em>): <a href="_promise_index_.apipromise.html">ApiPromise</a></p>
<p><em>Overrides <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#constructor">constructor</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L128" target="_blank">promise/index.ts:128</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L128" target="_blank">promise/index.ts:128</a></em></p>
<p><em><strong>description</strong></em>: Creates an instance of the ApiPromise class</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">import</span>&#xA0;<span class="sunlight-ident">Api</span>&#xA0;<span class="sunlight-ident">from</span>&#xA0;<span class="sunlight-string">&apos;@polkadot/api/promise&apos;</span><span class="sunlight-punctuation">;</span>
@@ -532,14 +532,14 @@
<h2 id="genesishash">genesisHash</h2>
<p>getgenesisHash(): <code>Hash</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#genesishash">genesisHash</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L88" target="_blank">Base.ts:88</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L88" target="_blank">Base.ts:88</a></em></p>
<p><em><strong>description</strong></em>: Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions.</p>
<p><strong>Returns:</strong> <code>Hash</code></p>
<hr>
<p><a id="isready"></a></p>
<h2 id="isready">isReady</h2>
<p>getisReady(): <code>Promise</code>&lt;<a href="_promise_index_.apipromise.html">ApiPromise</a>&gt;</p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L166" target="_blank">promise/index.ts:166</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L166" target="_blank">promise/index.ts:166</a></em></p>
<p><em><strong>description</strong></em>: Promise that returns the first time we are connected and loaded</p>
<p><strong>Returns:</strong> <code>Promise</code>&lt;<a href="_promise_index_.apipromise.html">ApiPromise</a>&gt;</p>
<hr>
@@ -547,7 +547,7 @@
<h2 id="query">query</h2>
<p>getquery(): <a href="../interfaces/_promise_types_.queryablestorage.md">QueryableStorage</a></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#query">query</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L126" target="_blank">Base.ts:126</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L126" target="_blank">Base.ts:126</a></em></p>
<p><em><strong>description</strong></em>: Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata.</p>
<p>All calls inside the namespace, is denoted by <code>section</code>.<code>method</code> and may take an optional query parameter. As an example, <code>api.query.timestamp.now()</code> (current block timestamp) does not take parameters, while <code>api.query.system.accountNonce(&lt;accountId&gt;)</code> (retrieving the associated nonce for an account), takes the <code>AccountId</code> as a parameter.</p>
<p><em><strong>example</strong></em>: </p>
@@ -561,7 +561,7 @@
<h2 id="rpc">rpc</h2>
<p>getrpc(): <code>Rpc</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#rpc">rpc</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L146" target="_blank">Base.ts:146</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L146" target="_blank">Base.ts:146</a></em></p>
<p><em><strong>description</strong></em>: Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic <code>api.query</code> and <code>api.tx</code> sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime.</p>
<p>RPC endpoints available here allow for the query of chain, node and system information, in addition to providing interfaces for the raw queries of state (usine known keys) and the submission of transactions.</p>
<p><em><strong>example</strong></em>: </p>
@@ -575,7 +575,7 @@
<h2 id="runtimemetadata">runtimeMetadata</h2>
<p>getruntimeMetadata(): <code>RuntimeMetadata</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#runtimemetadata">runtimeMetadata</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L97" target="_blank">Base.ts:97</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L97" target="_blank">Base.ts:97</a></em></p>
<p><em><strong>description</strong></em>: Yields the current attached runtime metadata. Generally this is only used to construct extrinsics &amp; storage, but is useful for current runtime inspection.</p>
<p><strong>Returns:</strong> <code>RuntimeMetadata</code></p>
<hr>
@@ -583,7 +583,7 @@
<h2 id="runtimeversion">runtimeVersion</h2>
<p>getruntimeVersion(): <code>RuntimeVersion</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#runtimeversion">runtimeVersion</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L106" target="_blank">Base.ts:106</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L106" target="_blank">Base.ts:106</a></em></p>
<p><em><strong>description</strong></em>: Contains the version information for the current runtime.</p>
<p><strong>Returns:</strong> <code>RuntimeVersion</code></p>
<hr>
@@ -591,7 +591,7 @@
<h2 id="tx">tx</h2>
<p>gettx(): <a href="../interfaces/_promise_types_.submittableextrinsics.md">SubmittableExtrinsics</a></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#tx">tx</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L165" target="_blank">Base.ts:165</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L165" target="_blank">Base.ts:165</a></em></p>
<p><em><strong>description</strong></em>: Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata.</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-ident">api</span><span class="sunlight-operator">.</span><span class="sunlight-ident">tx</span><span class="sunlight-operator">.</span><span class="sunlight-ident">balances</span>
@@ -607,7 +607,7 @@
<p><a id="combinelatest"></a></p>
<h2 id="combinelatest">combineLatest</h2>
<p>&#x25B8; <strong>combineLatest</strong>(fns: <em><code>Array</code>&lt;<a href="../modules/_promise_combinator_.md#combinatorfunction">CombinatorFunction</a>&gt;</em>, callback: <em><a href="../modules/_promise_combinator_.md#combinatorcallback">CombinatorCallback</a></em>): <a href="_promise_combinator_.combinator.md">Combinator</a></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L194" target="_blank">promise/index.ts:194</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L194" target="_blank">promise/index.ts:194</a></em></p>
<p><em><strong>description</strong></em>: Creates a combinator that can be used to combine the latest results from multiple subscriptions</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">const</span>&#xA0;<span class="sunlight-ident">address</span>&#xA0;<span class="sunlight-operator">=</span>&#xA0;<span class="sunlight-string">&apos;5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFacT7&apos;</span><span class="sunlight-punctuation">;</span>
@@ -649,7 +649,7 @@
<h2 id="on">on</h2>
<p>&#x25B8; <strong>on</strong>(type: <em><a href="../modules/_types_.md#apiinterface_events">ApiInterface$Events</a></em>, handler: <em><code>function</code></em>): <code>void</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#on">on</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L190" target="_blank">Base.ts:190</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L190" target="_blank">Base.ts:190</a></em></p>
<p><em><strong>description</strong></em>: Attach an eventemitter handler to listen to a specific event</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-ident">api</span><span class="sunlight-operator">.</span><span class="sunlight-ident">on</span><span class="sunlight-punctuation">(</span><span class="sunlight-string">&apos;disconnected&apos;</span><span class="sunlight-punctuation">,</span>&#xA0;<span class="sunlight-punctuation">(</span><span class="sunlight-punctuation">)</span>&#xA0;<span class="sunlight-operator">=</span><span class="sunlight-operator">&gt;</span>&#xA0;<span class="sunlight-punctuation">{</span>
@@ -687,7 +687,7 @@
<p><a id="create"></a></p>
<h2 id="static-create"><code>&lt;Static&gt;</code> create</h2>
<p>&#x25B8; <strong>create</strong>(options?: <em> <a href="../interfaces/_base_.apioptions.md">ApiOptions</a> | <code>WsProvider</code></em>): <code>Promise</code>&lt;<a href="_promise_index_.apipromise.html">ApiPromise</a>&gt;</p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L126" target="_blank">promise/index.ts:126</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L126" target="_blank">promise/index.ts:126</a></em></p>
<p><em><strong>description</strong></em>: Creates an ApiPromise instance using the supplied provider. Returns an Promise containing the actual Api instance.</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">import</span>&#xA0;<span class="sunlight-ident">Api</span>&#xA0;<span class="sunlight-ident">from</span>&#xA0;<span class="sunlight-string">&apos;@polkadot/api/promise&apos;</span><span class="sunlight-punctuation">;</span>
@@ -762,7 +762,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"ApiPromise","level":"1.2.1","depth":2,"next":{"title":"ApiRx","level":"1.2.2","depth":2,"path":"api/classes/_rx_index_.apirx.md","ref":"api/classes/_rx_index_.apirx.md","articles":[]},"previous":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"ApiPromise","level":"1.2.1","depth":2,"path":"api/classes/_promise_index_.apipromise.md","ref":"api/classes/_promise_index_.apipromise.md","articles":[]},{"title":"ApiRx","level":"1.2.2","depth":2,"path":"api/classes/_rx_index_.apirx.md","ref":"api/classes/_rx_index_.apirx.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":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/_promise_index_.apipromise.md","mtime":"2018-12-03T14:51:41.963Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-03T14:53:04.659Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"ApiPromise","level":"1.2.1","depth":2,"next":{"title":"ApiRx","level":"1.2.2","depth":2,"path":"api/classes/_rx_index_.apirx.md","ref":"api/classes/_rx_index_.apirx.md","articles":[]},"previous":{"title":"api","level":"1.2","depth":1,"path":"api/README.md","ref":"api/README.md","articles":[{"title":"ApiPromise","level":"1.2.1","depth":2,"path":"api/classes/_promise_index_.apipromise.md","ref":"api/classes/_promise_index_.apipromise.md","articles":[]},{"title":"ApiRx","level":"1.2.2","depth":2,"path":"api/classes/_rx_index_.apirx.md","ref":"api/classes/_rx_index_.apirx.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":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/_promise_index_.apipromise.md","mtime":"2018-12-03T14:58:16.591Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-03T14:59:45.860Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
+11 -11
View File
@@ -106,7 +106,7 @@ ApiPromise.create().then((api) => {
*Overrides [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
*Defined in [promise/index.ts:128](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L128)*
*Defined in [promise/index.ts:128](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L128)*
*__description__*: Creates an instance of the ApiPromise class
@@ -142,7 +142,7 @@ getgenesisHash(): `Hash`
*Inherited from [ApiBase](_base_.apibase.md).[genesisHash](_base_.apibase.md#genesishash)*
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L88)*
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L88)*
*__description__*: Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions.
@@ -155,7 +155,7 @@ ___
getisReady(): `Promise`<[ApiPromise](_promise_index_.apipromise.md)>
*Defined in [promise/index.ts:166](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L166)*
*Defined in [promise/index.ts:166](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L166)*
*__description__*: Promise that returns the first time we are connected and loaded
@@ -170,7 +170,7 @@ getquery(): [QueryableStorage](../interfaces/_promise_types_.queryablestorage.md
*Inherited from [ApiBase](_base_.apibase.md).[query](_base_.apibase.md#query)*
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L126)*
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L126)*
*__description__*: Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata.
@@ -195,7 +195,7 @@ getrpc(): `Rpc`
*Inherited from [ApiBase](_base_.apibase.md).[rpc](_base_.apibase.md#rpc)*
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L146)*
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L146)*
*__description__*: Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic `api.query` and `api.tx` sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime.
@@ -220,7 +220,7 @@ getruntimeMetadata(): `RuntimeMetadata`
*Inherited from [ApiBase](_base_.apibase.md).[runtimeMetadata](_base_.apibase.md#runtimemetadata)*
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L97)*
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L97)*
*__description__*: Yields the current attached runtime metadata. Generally this is only used to construct extrinsics & storage, but is useful for current runtime inspection.
@@ -235,7 +235,7 @@ getruntimeVersion(): `RuntimeVersion`
*Inherited from [ApiBase](_base_.apibase.md).[runtimeVersion](_base_.apibase.md#runtimeversion)*
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L106)*
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L106)*
*__description__*: Contains the version information for the current runtime.
@@ -250,7 +250,7 @@ gettx(): [SubmittableExtrinsics](../interfaces/_promise_types_.submittableextrin
*Inherited from [ApiBase](_base_.apibase.md).[tx](_base_.apibase.md#tx)*
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L165)*
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L165)*
*__description__*: Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata.
@@ -277,7 +277,7 @@ ___
▸ **combineLatest**(fns: *`Array`<[CombinatorFunction](../modules/_promise_combinator_.md#combinatorfunction)>*, callback: *[CombinatorCallback](../modules/_promise_combinator_.md#combinatorcallback)*): [Combinator](_promise_combinator_.combinator.md)
*Defined in [promise/index.ts:194](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L194)*
*Defined in [promise/index.ts:194](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L194)*
*__description__*: Creates a combinator that can be used to combine the latest results from multiple subscriptions
@@ -314,7 +314,7 @@ ___
*Inherited from [ApiBase](_base_.apibase.md).[on](_base_.apibase.md#on)*
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L190)*
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L190)*
*__description__*: Attach an eventemitter handler to listen to a specific event
@@ -346,7 +346,7 @@ ___
▸ **create**(options?: * [ApiOptions](../interfaces/_base_.apioptions.md) &#124; `WsProvider`*): `Promise`<[ApiPromise](_promise_index_.apipromise.md)>
*Defined in [promise/index.ts:126](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/index.ts#L126)*
*Defined in [promise/index.ts:126](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/index.ts#L126)*
*__description__*: Creates an ApiPromise instance using the supplied provider. Returns an Promise containing the actual Api instance.
@@ -25,7 +25,7 @@
*Overrides Extrinsic.__constructor*
*Defined in [promise/SubmittableExtrinsic.ts:12](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/SubmittableExtrinsic.ts#L12)*
*Defined in [promise/SubmittableExtrinsic.ts:12](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/SubmittableExtrinsic.ts#L12)*
**Parameters:**
@@ -73,7 +73,7 @@ getType(): `E`
*Inherited from Struct.Type*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:133](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L133)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:133](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L133)*
*__description__*: Returns the Type description to sthe structure
@@ -88,7 +88,7 @@ getargs(): `Array`<`Codec`>
*Inherited from Extrinsic.args*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:69](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L69)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:69](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L69)*
*__description__*: The arguments passed to for the call, exposes args so it is compatible with \[\[Method\]\]
@@ -103,7 +103,7 @@ getcallIndex(): `Uint8Array`
*Inherited from Extrinsic.callIndex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:76](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L76)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:76](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L76)*
*__description__*: The actual `[sectionIndex, methodIndex]` as used in the Method
@@ -118,7 +118,7 @@ getdata(): `Uint8Array`
*Inherited from Extrinsic.data*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:83](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L83)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:83](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L83)*
*__description__*: The actual data for the Method
@@ -135,7 +135,7 @@ getencodedLength(): `number`
*Overrides Struct.encodedLength*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:90](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L90)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:90](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L90)*
*__description__*: The length of the value when encoded as a Uint8Array
@@ -150,7 +150,7 @@ gethash(): `Hash`
*Inherited from Extrinsic.hash*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:99](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L99)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:99](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L99)*
*__description__*: Convernience function, encodes the extrinsic and returns the actual hash
@@ -165,7 +165,7 @@ getisSigned(): `boolean`
*Inherited from Extrinsic.isSigned*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:108](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L108)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:108](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L108)*
*__description__*: `true` id the extrinsic is signed
@@ -180,7 +180,7 @@ getlength(): `number`
*Inherited from Extrinsic.length*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:115](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L115)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:115](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L115)*
*__description__*: The length of the encoded value
@@ -195,7 +195,7 @@ getmeta(): `FunctionMetadata`
*Inherited from Extrinsic.meta*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:122](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L122)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:122](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L122)*
*__description__*: The \[\[FunctionMetadata\]\] that describes the extrinsic
@@ -210,7 +210,7 @@ getmethod(): `Method`
*Inherited from Extrinsic.method*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:129](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L129)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:129](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L129)*
*__description__*: The \[\[Method\]\] this extrinsic wraps
@@ -225,7 +225,7 @@ getsignature(): `ExtrinsicSignature`
*Inherited from Extrinsic.signature*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:136](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L136)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:136](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L136)*
*__description__*: The \[\[ExtrinsicSignature\]\]
@@ -258,7 +258,7 @@ ___
*Inherited from Extrinsic.addSignature*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:143](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L143)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:143](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L143)*
*__description__*: Add an \[\[ExtrinsicSignature\]\] to the extrinsic (already generated)
@@ -351,7 +351,7 @@ ___
*Overrides Map.get*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:150](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L150)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:150](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L150)*
*__description__*: Returns a specific names entry in the structure
@@ -372,7 +372,7 @@ ___
*Inherited from Struct.getAtIndex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:157](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L157)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:157](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L157)*
*__description__*: Returns the values of a member at a specific index (Rather use get(name) for performance)
@@ -425,7 +425,7 @@ ___
▸ **send**(statusCb?: * `undefined` &#124; `function`*): `Promise`<`Hash`>
*Defined in [promise/SubmittableExtrinsic.ts:20](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/SubmittableExtrinsic.ts#L20)*
*Defined in [promise/SubmittableExtrinsic.ts:20](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/SubmittableExtrinsic.ts#L20)*
**Parameters:**
@@ -464,7 +464,7 @@ ___
*Overrides Extrinsic.sign*
*Defined in [promise/SubmittableExtrinsic.ts:28](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/promise/SubmittableExtrinsic.ts#L28)*
*Defined in [promise/SubmittableExtrinsic.ts:28](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/promise/SubmittableExtrinsic.ts#L28)*
**Parameters:**
@@ -485,7 +485,7 @@ ___
*Inherited from Struct.toArray*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:164](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L164)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:164](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L164)*
*__description__*: Converts the Object to an standard JavaScript Array
@@ -502,7 +502,7 @@ ___
*Overrides Struct.toHex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:161](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L161)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:161](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L161)*
*__description__*: Returns a hex string representation of the value
@@ -519,7 +519,7 @@ ___
*Overrides Struct.toJSON*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:168](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L168)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:168](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L168)*
*__description__*: Converts the Object to JSON, typically used for RPC transfers
@@ -534,7 +534,7 @@ ___
*Inherited from Struct.toString*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:192](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L192)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:192](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L192)*
*__description__*: Returns the string representation of the value
@@ -551,7 +551,7 @@ ___
*Overrides Struct.toU8a*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:176](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L176)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:176](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L176)*
*__description__*: Encodes the value as a Uint8Array as per the parity-codec specifications
@@ -587,7 +587,7 @@ ___
*Inherited from Extrinsic.decodeExtrinsic*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:44](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L44)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:44](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L44)*
**Parameters:**
@@ -606,7 +606,7 @@ ___
*Inherited from Struct.with*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:113](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L113)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:113](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L113)*
**Type parameters:**
+12 -12
View File
@@ -506,7 +506,7 @@
<h2 id="constructor">constructor</h2>
<p>&#x2295; <strong>new ApiRx</strong>(options?: <em> <a href="../interfaces/_base_.apioptions.md">ApiOptions</a> | <code>WsProvider</code></em>): <a href="_rx_index_.apirx.html">ApiRx</a></p>
<p><em>Overrides <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#constructor">constructor</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L143" target="_blank">rx/index.ts:143</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L143" target="_blank">rx/index.ts:143</a></em></p>
<p><em><strong>description</strong></em>: Create an instance of the ApiRx class</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">import</span>&#xA0;<span class="sunlight-ident">Api</span>&#xA0;<span class="sunlight-ident">from</span>&#xA0;<span class="sunlight-string">&apos;@polkadot/api/rx&apos;</span><span class="sunlight-punctuation">;</span>
@@ -543,21 +543,21 @@
<h2 id="genesishash">genesisHash</h2>
<p>getgenesisHash(): <code>Hash</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#genesishash">genesisHash</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L88" target="_blank">Base.ts:88</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L88" target="_blank">Base.ts:88</a></em></p>
<p><em><strong>description</strong></em>: Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions.</p>
<p><strong>Returns:</strong> <code>Hash</code></p>
<hr>
<p><a id="isconnected"></a></p>
<h2 id="isconnected">isConnected</h2>
<p>getisConnected(): <code>Observable</code>&lt;<code>boolean</code>&gt;</p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L184" target="_blank">rx/index.ts:184</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L184" target="_blank">rx/index.ts:184</a></em></p>
<p><em><strong>description</strong></em>: Observable that carries the connected state for the provider. Results in a boolean flag that is true/false based on the connectivity.</p>
<p><strong>Returns:</strong> <code>Observable</code>&lt;<code>boolean</code>&gt;</p>
<hr>
<p><a id="isready"></a></p>
<h2 id="isready">isReady</h2>
<p>getisReady(): <code>Observable</code>&lt;<a href="_rx_index_.apirx.html">ApiRx</a>&gt;</p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L191" target="_blank">rx/index.ts:191</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L191" target="_blank">rx/index.ts:191</a></em></p>
<p><em><strong>description</strong></em>: Observable that returns the first time we are connected and loaded</p>
<p><strong>Returns:</strong> <code>Observable</code>&lt;<a href="_rx_index_.apirx.html">ApiRx</a>&gt;</p>
<hr>
@@ -565,7 +565,7 @@
<h2 id="query">query</h2>
<p>getquery(): <a href="../interfaces/_rx_types_.queryablestorage.md">QueryableStorage</a></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#query">query</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L126" target="_blank">Base.ts:126</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L126" target="_blank">Base.ts:126</a></em></p>
<p><em><strong>description</strong></em>: Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata.</p>
<p>All calls inside the namespace, is denoted by <code>section</code>.<code>method</code> and may take an optional query parameter. As an example, <code>api.query.timestamp.now()</code> (current block timestamp) does not take parameters, while <code>api.query.system.accountNonce(&lt;accountId&gt;)</code> (retrieving the associated nonce for an account), takes the <code>AccountId</code> as a parameter.</p>
<p><em><strong>example</strong></em>: </p>
@@ -579,7 +579,7 @@
<h2 id="rpc">rpc</h2>
<p>getrpc(): <code>RpcRx</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#rpc">rpc</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L146" target="_blank">Base.ts:146</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L146" target="_blank">Base.ts:146</a></em></p>
<p><em><strong>description</strong></em>: Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic <code>api.query</code> and <code>api.tx</code> sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime.</p>
<p>RPC endpoints available here allow for the query of chain, node and system information, in addition to providing interfaces for the raw queries of state (usine known keys) and the submission of transactions.</p>
<p><em><strong>example</strong></em>: </p>
@@ -593,7 +593,7 @@
<h2 id="runtimemetadata">runtimeMetadata</h2>
<p>getruntimeMetadata(): <code>RuntimeMetadata</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#runtimemetadata">runtimeMetadata</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L97" target="_blank">Base.ts:97</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L97" target="_blank">Base.ts:97</a></em></p>
<p><em><strong>description</strong></em>: Yields the current attached runtime metadata. Generally this is only used to construct extrinsics &amp; storage, but is useful for current runtime inspection.</p>
<p><strong>Returns:</strong> <code>RuntimeMetadata</code></p>
<hr>
@@ -601,7 +601,7 @@
<h2 id="runtimeversion">runtimeVersion</h2>
<p>getruntimeVersion(): <code>RuntimeVersion</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#runtimeversion">runtimeVersion</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L106" target="_blank">Base.ts:106</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L106" target="_blank">Base.ts:106</a></em></p>
<p><em><strong>description</strong></em>: Contains the version information for the current runtime.</p>
<p><strong>Returns:</strong> <code>RuntimeVersion</code></p>
<hr>
@@ -609,7 +609,7 @@
<h2 id="tx">tx</h2>
<p>gettx(): <a href="../interfaces/_rx_types_.submittableextrinsics.md">SubmittableExtrinsics</a></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#tx">tx</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L165" target="_blank">Base.ts:165</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L165" target="_blank">Base.ts:165</a></em></p>
<p><em><strong>description</strong></em>: Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata.</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-ident">api</span><span class="sunlight-operator">.</span><span class="sunlight-ident">tx</span><span class="sunlight-operator">.</span><span class="sunlight-ident">balances</span>
@@ -626,7 +626,7 @@
<h2 id="on">on</h2>
<p>&#x25B8; <strong>on</strong>(type: <em><a href="../modules/_types_.md#apiinterface_events">ApiInterface$Events</a></em>, handler: <em><code>function</code></em>): <code>void</code></p>
<p><em>Inherited from <a href="_base_.apibase.md">ApiBase</a>.<a href="_base_.apibase.md#on">on</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L190" target="_blank">Base.ts:190</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L190" target="_blank">Base.ts:190</a></em></p>
<p><em><strong>description</strong></em>: Attach an eventemitter handler to listen to a specific event</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-ident">api</span><span class="sunlight-operator">.</span><span class="sunlight-ident">on</span><span class="sunlight-punctuation">(</span><span class="sunlight-string">&apos;disconnected&apos;</span><span class="sunlight-punctuation">,</span>&#xA0;<span class="sunlight-punctuation">(</span><span class="sunlight-punctuation">)</span>&#xA0;<span class="sunlight-operator">=</span><span class="sunlight-operator">&gt;</span>&#xA0;<span class="sunlight-punctuation">{</span>
@@ -664,7 +664,7 @@
<p><a id="create"></a></p>
<h2 id="static-create"><code>&lt;Static&gt;</code> create</h2>
<p>&#x25B8; <strong>create</strong>(options?: <em> <a href="../interfaces/_base_.apioptions.md">ApiOptions</a> | <code>WsProvider</code></em>): <code>Observable</code>&lt;<a href="_rx_index_.apirx.html">ApiRx</a>&gt;</p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L141" target="_blank">rx/index.ts:141</a></em></p>
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L141" target="_blank">rx/index.ts:141</a></em></p>
<p><em><strong>description</strong></em>: Creates an ApiRx instance using the supplied provider. Returns an Observable containing the actual Api instance.</p>
<p><em><strong>example</strong></em>: </p>
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">import</span>&#xA0;<span class="sunlight-ident">Api</span>&#xA0;<span class="sunlight-ident">from</span>&#xA0;<span class="sunlight-string">&apos;@polkadot/api/rx&apos;</span><span class="sunlight-punctuation">;</span>
@@ -739,7 +739,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.2.2","depth":2,"next":{"title":"rpc-provider","level":"1.3","depth":1,"path":"rpc-provider/README.md","ref":"rpc-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"rpc-provider/classes/_http_index_.httpprovider.md","ref":"rpc-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"rpc-provider/classes/_ws_index_.wsprovider.md","ref":"rpc-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"previous":{"title":"ApiPromise","level":"1.2.1","depth":2,"path":"api/classes/_promise_index_.apipromise.md","ref":"api/classes/_promise_index_.apipromise.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":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/_rx_index_.apirx.md","mtime":"2018-12-03T14:51:42.143Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-03T14:53:04.659Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.2.2","depth":2,"next":{"title":"rpc-provider","level":"1.3","depth":1,"path":"rpc-provider/README.md","ref":"rpc-provider/README.md","articles":[{"title":"HttpProvider","level":"1.3.1","depth":2,"path":"rpc-provider/classes/_http_index_.httpprovider.md","ref":"rpc-provider/classes/_http_index_.httpprovider.md","articles":[]},{"title":"WsProvider","level":"1.3.2","depth":2,"path":"rpc-provider/classes/_ws_index_.wsprovider.md","ref":"rpc-provider/classes/_ws_index_.wsprovider.md","articles":[]}]},"previous":{"title":"ApiPromise","level":"1.2.1","depth":2,"path":"api/classes/_promise_index_.apipromise.md","ref":"api/classes/_promise_index_.apipromise.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"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},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":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/_rx_index_.apirx.md","mtime":"2018-12-03T14:58:16.779Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-03T14:59:45.860Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
+11 -11
View File
@@ -117,7 +117,7 @@ api.query.system
*Overrides [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
*Defined in [rx/index.ts:143](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L143)*
*Defined in [rx/index.ts:143](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L143)*
*__description__*: Create an instance of the ApiRx class
@@ -153,7 +153,7 @@ getgenesisHash(): `Hash`
*Inherited from [ApiBase](_base_.apibase.md).[genesisHash](_base_.apibase.md#genesishash)*
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L88)*
*Defined in [Base.ts:88](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L88)*
*__description__*: Contains the genesis Hash of the attached chain. Apart from being useful to determine the actual chain, it can also be used to sign immortal transactions.
@@ -166,7 +166,7 @@ ___
getisConnected(): `Observable`<`boolean`>
*Defined in [rx/index.ts:184](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L184)*
*Defined in [rx/index.ts:184](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L184)*
*__description__*: Observable that carries the connected state for the provider. Results in a boolean flag that is true/false based on the connectivity.
@@ -179,7 +179,7 @@ ___
getisReady(): `Observable`<[ApiRx](_rx_index_.apirx.md)>
*Defined in [rx/index.ts:191](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L191)*
*Defined in [rx/index.ts:191](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L191)*
*__description__*: Observable that returns the first time we are connected and loaded
@@ -194,7 +194,7 @@ getquery(): [QueryableStorage](../interfaces/_rx_types_.queryablestorage.md)
*Inherited from [ApiBase](_base_.apibase.md).[query](_base_.apibase.md#query)*
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L126)*
*Defined in [Base.ts:126](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L126)*
*__description__*: Contains all the chain state modules and their subsequent methods in the API. These are attached dynamically from the runtime metadata.
@@ -219,7 +219,7 @@ getrpc(): `RpcRx`
*Inherited from [ApiBase](_base_.apibase.md).[rpc](_base_.apibase.md#rpc)*
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L146)*
*Defined in [Base.ts:146](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L146)*
*__description__*: Contains all the raw rpc sections and their subsequent methods in the API as defined by the jsonrpc interface definitions. Unlike the dynamic `api.query` and `api.tx` sections, these methods are fixed (although extensible with node upgrades) and not determined by the runtime.
@@ -244,7 +244,7 @@ getruntimeMetadata(): `RuntimeMetadata`
*Inherited from [ApiBase](_base_.apibase.md).[runtimeMetadata](_base_.apibase.md#runtimemetadata)*
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L97)*
*Defined in [Base.ts:97](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L97)*
*__description__*: Yields the current attached runtime metadata. Generally this is only used to construct extrinsics & storage, but is useful for current runtime inspection.
@@ -259,7 +259,7 @@ getruntimeVersion(): `RuntimeVersion`
*Inherited from [ApiBase](_base_.apibase.md).[runtimeVersion](_base_.apibase.md#runtimeversion)*
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L106)*
*Defined in [Base.ts:106](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L106)*
*__description__*: Contains the version information for the current runtime.
@@ -274,7 +274,7 @@ gettx(): [SubmittableExtrinsics](../interfaces/_rx_types_.submittableextrinsics.
*Inherited from [ApiBase](_base_.apibase.md).[tx](_base_.apibase.md#tx)*
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L165)*
*Defined in [Base.ts:165](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L165)*
*__description__*: Contains all the extrinsic modules and their subsequent methods in the API. It allows for the construction of transactions and the submission thereof. These are attached dynamically from the runtime metadata.
@@ -303,7 +303,7 @@ ___
*Inherited from [ApiBase](_base_.apibase.md).[on](_base_.apibase.md#on)*
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/Base.ts#L190)*
*Defined in [Base.ts:190](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/Base.ts#L190)*
*__description__*: Attach an eventemitter handler to listen to a specific event
@@ -335,7 +335,7 @@ ___
▸ **create**(options?: * [ApiOptions](../interfaces/_base_.apioptions.md) &#124; `WsProvider`*): `Observable`<[ApiRx](_rx_index_.apirx.md)>
*Defined in [rx/index.ts:141](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/index.ts#L141)*
*Defined in [rx/index.ts:141](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/index.ts#L141)*
*__description__*: Creates an ApiRx instance using the supplied provider. Returns an Observable containing the actual Api instance.
@@ -25,7 +25,7 @@
*Overrides Extrinsic.__constructor*
*Defined in [rx/SubmittableExtrinsic.ts:13](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/SubmittableExtrinsic.ts#L13)*
*Defined in [rx/SubmittableExtrinsic.ts:13](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/SubmittableExtrinsic.ts#L13)*
**Parameters:**
@@ -73,7 +73,7 @@ getType(): `E`
*Inherited from Struct.Type*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:133](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L133)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:133](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L133)*
*__description__*: Returns the Type description to sthe structure
@@ -88,7 +88,7 @@ getargs(): `Array`<`Codec`>
*Inherited from Extrinsic.args*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:69](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L69)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:69](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L69)*
*__description__*: The arguments passed to for the call, exposes args so it is compatible with \[\[Method\]\]
@@ -103,7 +103,7 @@ getcallIndex(): `Uint8Array`
*Inherited from Extrinsic.callIndex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:76](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L76)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:76](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L76)*
*__description__*: The actual `[sectionIndex, methodIndex]` as used in the Method
@@ -118,7 +118,7 @@ getdata(): `Uint8Array`
*Inherited from Extrinsic.data*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:83](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L83)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:83](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L83)*
*__description__*: The actual data for the Method
@@ -135,7 +135,7 @@ getencodedLength(): `number`
*Overrides Struct.encodedLength*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:90](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L90)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:90](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L90)*
*__description__*: The length of the value when encoded as a Uint8Array
@@ -150,7 +150,7 @@ gethash(): `Hash`
*Inherited from Extrinsic.hash*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:99](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L99)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:99](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L99)*
*__description__*: Convernience function, encodes the extrinsic and returns the actual hash
@@ -165,7 +165,7 @@ getisSigned(): `boolean`
*Inherited from Extrinsic.isSigned*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:108](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L108)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:108](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L108)*
*__description__*: `true` id the extrinsic is signed
@@ -180,7 +180,7 @@ getlength(): `number`
*Inherited from Extrinsic.length*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:115](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L115)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:115](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L115)*
*__description__*: The length of the encoded value
@@ -195,7 +195,7 @@ getmeta(): `FunctionMetadata`
*Inherited from Extrinsic.meta*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:122](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L122)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:122](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L122)*
*__description__*: The \[\[FunctionMetadata\]\] that describes the extrinsic
@@ -210,7 +210,7 @@ getmethod(): `Method`
*Inherited from Extrinsic.method*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:129](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L129)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:129](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L129)*
*__description__*: The \[\[Method\]\] this extrinsic wraps
@@ -225,7 +225,7 @@ getsignature(): `ExtrinsicSignature`
*Inherited from Extrinsic.signature*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:136](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L136)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:136](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L136)*
*__description__*: The \[\[ExtrinsicSignature\]\]
@@ -258,7 +258,7 @@ ___
*Inherited from Extrinsic.addSignature*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:143](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L143)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:143](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L143)*
*__description__*: Add an \[\[ExtrinsicSignature\]\] to the extrinsic (already generated)
@@ -351,7 +351,7 @@ ___
*Overrides Map.get*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:150](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L150)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:150](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L150)*
*__description__*: Returns a specific names entry in the structure
@@ -372,7 +372,7 @@ ___
*Inherited from Struct.getAtIndex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:157](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L157)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:157](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L157)*
*__description__*: Returns the values of a member at a specific index (Rather use get(name) for performance)
@@ -425,7 +425,7 @@ ___
▸ **send**(): `Observable`<`ExtrinsicStatus`>
*Defined in [rx/SubmittableExtrinsic.ts:21](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/SubmittableExtrinsic.ts#L21)*
*Defined in [rx/SubmittableExtrinsic.ts:21](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/SubmittableExtrinsic.ts#L21)*
**Returns:** `Observable`<`ExtrinsicStatus`>
@@ -458,7 +458,7 @@ ___
*Overrides Extrinsic.sign*
*Defined in [rx/SubmittableExtrinsic.ts:25](https://github.com/polkadot-js/api/blob/a7b177d/packages/api/src/rx/SubmittableExtrinsic.ts#L25)*
*Defined in [rx/SubmittableExtrinsic.ts:25](https://github.com/polkadot-js/api/blob/1d18321/packages/api/src/rx/SubmittableExtrinsic.ts#L25)*
**Parameters:**
@@ -479,7 +479,7 @@ ___
*Inherited from Struct.toArray*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:164](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L164)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:164](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L164)*
*__description__*: Converts the Object to an standard JavaScript Array
@@ -496,7 +496,7 @@ ___
*Overrides Struct.toHex*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:161](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L161)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:161](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L161)*
*__description__*: Returns a hex string representation of the value
@@ -513,7 +513,7 @@ ___
*Overrides Struct.toJSON*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:168](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L168)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:168](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L168)*
*__description__*: Converts the Object to JSON, typically used for RPC transfers
@@ -528,7 +528,7 @@ ___
*Inherited from Struct.toString*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:192](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L192)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:192](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L192)*
*__description__*: Returns the string representation of the value
@@ -545,7 +545,7 @@ ___
*Overrides Struct.toU8a*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:176](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L176)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:176](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L176)*
*__description__*: Encodes the value as a Uint8Array as per the parity-codec specifications
@@ -581,7 +581,7 @@ ___
*Inherited from Extrinsic.decodeExtrinsic*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:44](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/Extrinsic.ts#L44)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/Extrinsic.ts:44](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/Extrinsic.ts#L44)*
**Parameters:**
@@ -600,7 +600,7 @@ ___
*Inherited from Struct.with*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:113](https://github.com/polkadot-js/api/blob/a7b177d/packages/types/src/codec/Struct.ts#L113)*
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:113](https://github.com/polkadot-js/api/blob/1d18321/packages/types/src/codec/Struct.ts#L113)*
**Type parameters:**