[CI Skip] 0.45.15
This commit is contained in:
@@ -69,3 +69,8 @@ api.chain
|
||||
});
|
||||
```
|
||||
|
||||
Classes
|
||||
-------
|
||||
|
||||
[Classes](SUMMARY.md)
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,8 +1,3 @@
|
||||
* ["formatting.spec"](modules/_formatting_spec_.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [Rpc](classes/_index_.rpc.md)
|
||||
* ["index.spec"](modules/_index_spec_.md)
|
||||
* ["methodSend.spec"](modules/_methodsend_spec_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* [RpcInterface](interfaces/_types_.rpcinterface.md)
|
||||
* [RpcInterface$Method](interfaces/_types_.rpcinterface_method.md)
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
|
||||
|
||||
*__name__*: Rpc
|
||||
|
||||
*__summary__*: The API may use a HTTP or WebSockets provider.
|
||||
|
||||
*__description__*: It allows for querying a Polkadot Client Node. WebSockets provider is recommended since HTTP provider only supports basic querying.
|
||||
|
||||
```mermaid
|
||||
graph LR;
|
||||
A[Api] --> \|WebSockets\| B[WsProvider];
|
||||
B --> \|endpoint\| C[ws://127.0.0.1:9944]
|
||||
```
|
||||
|
||||
*__example__*:
|
||||
|
||||
```javascript
|
||||
import Api from '@polkadot/rpc-core';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
|
||||
const provider = new WsProvider('ws://127.0.0.1:9944');
|
||||
const api = new Api(provider);
|
||||
```
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**Rpc**
|
||||
|
||||
# Implements
|
||||
|
||||
* [RpcInterface](../interfaces/_types_.rpcinterface.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new Rpc**(provider?: *`ProviderInterface`*): [Rpc](_index_.rpc.md)
|
||||
|
||||
*Defined in [index.ts:45](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L45)*
|
||||
|
||||
*__constructor__*: Default constructor for the Api Object
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| ------ | ------ | ------ | ------ |
|
||||
| `Default value` provider | `ProviderInterface` | new WsProvider() | An API provider using HTTP or WebSocket |
|
||||
|
||||
**Returns:** [Rpc](_index_.rpc.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="_provider"></a>
|
||||
|
||||
## _provider
|
||||
|
||||
**● _provider**: *`ProviderInterface`*
|
||||
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L41)*
|
||||
|
||||
___
|
||||
<a id="author"></a>
|
||||
|
||||
## author
|
||||
|
||||
**● author**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Implementation of [RpcInterface](../interfaces/_types_.rpcinterface.md).[author](../interfaces/_types_.rpcinterface.md#author)*
|
||||
|
||||
*Defined in [index.ts:42](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L42)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
|
||||
## chain
|
||||
|
||||
**● chain**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Implementation of [RpcInterface](../interfaces/_types_.rpcinterface.md).[chain](../interfaces/_types_.rpcinterface.md#chain)*
|
||||
|
||||
*Defined in [index.ts:43](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L43)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
|
||||
## state
|
||||
|
||||
**● state**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Implementation of [RpcInterface](../interfaces/_types_.rpcinterface.md).[state](../interfaces/_types_.rpcinterface.md#state)*
|
||||
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L44)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
|
||||
## system
|
||||
|
||||
**● system**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Implementation of [RpcInterface](../interfaces/_types_.rpcinterface.md).[system](../interfaces/_types_.rpcinterface.md#system)*
|
||||
|
||||
*Defined in [index.ts:45](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L45)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="disconnect"></a>
|
||||
|
||||
## disconnect
|
||||
|
||||
▸ **disconnect**(): `void`
|
||||
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L89)*
|
||||
|
||||
*__description__*: Manually disconnect from the attached provider
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="signature"></a>
|
||||
|
||||
## `<Static>` signature
|
||||
|
||||
▸ **signature**(__namedParameters: *`object`*): `string`
|
||||
|
||||
*Defined in [index.ts:78](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/index.ts#L78)*
|
||||
|
||||
*__name__*: signature
|
||||
|
||||
*__summary__*: Returns a string representation of the method with inputs and outputs.
|
||||
|
||||
*__description__*: Formats the name, inputs and outputs into a human-readable string. This contains the input parameter names input types and output type.
|
||||
|
||||
*__example__*:
|
||||
|
||||
```javascript
|
||||
import Api from '@polkadot/rpc-core';
|
||||
|
||||
Api.signature({ name: 'test_method', params: [ { name: 'dest', type: 'Address' } ], type: 'Address' }); // => test_method (dest: Address): Address
|
||||
```
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -4,10 +4,6 @@
|
||||
|
||||
**RpcInterface**
|
||||
|
||||
# Implemented by
|
||||
|
||||
* [Rpc](../classes/_index_.rpc.md)
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="author"></a>
|
||||
@@ -16,7 +12,7 @@
|
||||
|
||||
**● author**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Defined in [types.ts:17](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L17)*
|
||||
*Defined in [types.ts:17](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L17)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
@@ -25,7 +21,7 @@ ___
|
||||
|
||||
**● chain**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L18)*
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L18)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
@@ -34,7 +30,7 @@ ___
|
||||
|
||||
**● state**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Defined in [types.ts:19](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L19)*
|
||||
*Defined in [types.ts:19](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L19)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
@@ -43,7 +39,7 @@ ___
|
||||
|
||||
**● system**: *[RpcInterface$Section](../modules/_types_.md#rpcinterface_section)*
|
||||
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L20)*
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L20)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
|
||||
# Callable
|
||||
▸ **__call**(...params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L5)*
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L5)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
**● subscription**: *`string`*
|
||||
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L8)*
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L8)*
|
||||
|
||||
___
|
||||
<a id="unsubscribe"></a>
|
||||
@@ -34,7 +34,7 @@ ___
|
||||
|
||||
**● unsubscribe**: *`function`*
|
||||
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L9)*
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L9)*
|
||||
|
||||
#### Type declaration
|
||||
▸(id: *`number`*): `Promise`<`any`>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [Rpc](../classes/_index_.rpc.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@
|
||||
|
||||
**Ƭ RpcInterface$Section**: *`object`*
|
||||
|
||||
*Defined in [types.ts:12](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-core/src/types.ts#L12)*
|
||||
*Defined in [types.ts:12](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-core/src/types.ts#L12)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user