[CI Skip] 0.29.3
This commit is contained in:
+2
-107
@@ -87,14 +87,6 @@ api.chain
|
||||
* [ApiInterface](#apiinterface)
|
||||
* [ApiInterface$Section](#apiinterface_section)
|
||||
|
||||
### Functions
|
||||
|
||||
* [createInterface](#createinterface)
|
||||
* [createMethodSend](#createmethodsend)
|
||||
* [createParams](#createparams)
|
||||
* [formatResult](#formatresult)
|
||||
* [methodSubscribe](#methodsubscribe)
|
||||
|
||||
---
|
||||
|
||||
## Type aliases
|
||||
@@ -105,7 +97,7 @@ api.chain
|
||||
|
||||
**Ƭ ApiInterface**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:18](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/types.d.ts#L18)*
|
||||
*Defined in [types.d.ts:18](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/types.d.ts#L18)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -116,7 +108,7 @@ ___
|
||||
|
||||
**Ƭ ApiInterface$Section**: *`object`*
|
||||
|
||||
*Defined in [types.d.ts:14](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/types.d.ts#L14)*
|
||||
*Defined in [types.d.ts:14](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/types.d.ts#L14)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -124,100 +116,3 @@ ___
|
||||
|
||||
___
|
||||
|
||||
## Functions
|
||||
|
||||
<a id="createinterface"></a>
|
||||
|
||||
### createInterface
|
||||
|
||||
▸ **createInterface**(provider: *`ProviderInterface`*, section: *`Interface$Sections`*): [ApiInterface$Section](#apiinterface_section)
|
||||
|
||||
*Defined in [create/interface.ts:16](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/create/interface.ts#L16)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| provider | `ProviderInterface` |
|
||||
| section | `Interface$Sections` |
|
||||
|
||||
**Returns:** [ApiInterface$Section](#apiinterface_section)
|
||||
|
||||
___
|
||||
<a id="createmethodsend"></a>
|
||||
|
||||
### createMethodSend
|
||||
|
||||
▸ **createMethodSend**(provider: *`ProviderInterface`*, rpcName: *`string`*, method: *`SectionItem`<`Interfaces`>*): [ApiInterface$Section$Method](interfaces/apiinterface_section_method.md)
|
||||
|
||||
*Defined in [create/methodSend.ts:16](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/create/methodSend.ts#L16)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| provider | `ProviderInterface` |
|
||||
| rpcName | `string` |
|
||||
| method | `SectionItem`<`Interfaces`> |
|
||||
|
||||
**Returns:** [ApiInterface$Section$Method](interfaces/apiinterface_section_method.md)
|
||||
|
||||
___
|
||||
<a id="createparams"></a>
|
||||
|
||||
### createParams
|
||||
|
||||
▸ **createParams**(params: *`Params`*, values: *`Array`<`any`>*): `Array`<`any`>
|
||||
|
||||
*Defined in [create/params.ts:10](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/create/params.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| params | `Params` |
|
||||
| values | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Array`<`any`>
|
||||
|
||||
___
|
||||
<a id="formatresult"></a>
|
||||
|
||||
### formatResult
|
||||
|
||||
▸ **formatResult**(method: *`SectionItem`<`Interfaces`>*, params: *`Array`<`any`>*, inputs: *`Array`<`any`>*, result?: *`any`*): `any`
|
||||
|
||||
*Defined in [create/formatResult.ts:16](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/create/formatResult.ts#L16)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| method | `SectionItem`<`Interfaces`> |
|
||||
| params | `Array`<`any`> |
|
||||
| inputs | `Array`<`any`> |
|
||||
| `Optional` result | `any` |
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="methodsubscribe"></a>
|
||||
|
||||
### methodSubscribe
|
||||
|
||||
▸ **methodSubscribe**(provider: *`ProviderInterface`*, rpcName: *`string`*, method: *`SectionItem`<`Interfaces`>*): [ApiInterface$Section$Method](interfaces/apiinterface_section_method.md)
|
||||
|
||||
*Defined in [create/methodSubscribe.ts:18](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/create/methodSubscribe.ts#L18)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| provider | `ProviderInterface` |
|
||||
| rpcName | `string` |
|
||||
| method | `SectionItem`<`Interfaces`> |
|
||||
|
||||
**Returns:** [ApiInterface$Section$Method](interfaces/apiinterface_section_method.md)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*__example__*: ```javascript
|
||||
import Api from '@polkadot/api';
|
||||
import WsProvider from '@polkadot/api-provider/ws';
|
||||
|
||||
const provider = new WsProvider('http://127.0.0.1:9944');
|
||||
const api = new Api(provider);
|
||||
```
|
||||
@@ -40,7 +41,7 @@ const api = new Api(provider);
|
||||
|
||||
⊕ **new Api**(provider: *`ProviderInterface`*): [Api](api.md)
|
||||
|
||||
*Defined in [index.ts:26](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/index.ts#L26)*
|
||||
*Defined in [index.ts:37](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/index.ts#L37)*
|
||||
|
||||
*__constructor__*: Default constructor for the Api Object
|
||||
|
||||
@@ -62,7 +63,7 @@ ___
|
||||
|
||||
**● author**: *[ApiInterface$Section](../#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:23](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/index.ts#L23)*
|
||||
*Defined in [index.ts:34](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/index.ts#L34)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
@@ -71,7 +72,7 @@ ___
|
||||
|
||||
**● chain**: *[ApiInterface$Section](../#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:24](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/index.ts#L24)*
|
||||
*Defined in [index.ts:35](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/index.ts#L35)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
@@ -80,7 +81,7 @@ ___
|
||||
|
||||
**● state**: *[ApiInterface$Section](../#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:25](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/index.ts#L25)*
|
||||
*Defined in [index.ts:36](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/index.ts#L36)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
@@ -89,7 +90,7 @@ ___
|
||||
|
||||
**● system**: *[ApiInterface$Section](../#apiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:26](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/index.ts#L26)*
|
||||
*Defined in [index.ts:37](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/index.ts#L37)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
## Callable
|
||||
▸ **__call**(...params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [types.d.ts:7](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/types.d.ts#L7)*
|
||||
*Defined in [types.d.ts:7](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/types.d.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
**● subscription**: *`string`*
|
||||
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/types.d.ts#L10)*
|
||||
*Defined in [types.d.ts:10](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/types.d.ts#L10)*
|
||||
|
||||
___
|
||||
<a id="unsubscribe"></a>
|
||||
@@ -45,7 +45,7 @@ ___
|
||||
|
||||
**● unsubscribe**: *`function`*
|
||||
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/0981a30/packages/api/src/types.d.ts#L11)*
|
||||
*Defined in [types.d.ts:11](https://github.com/polkadot-js/api/blob/5f8c52d/packages/api/src/types.d.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
▸(id: *`number`*): `Promise`<`any`>
|
||||
|
||||
Reference in New Issue
Block a user