26 lines
498 B
Markdown
26 lines
498 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="subscribe"></a>
|
|
|
|
## subscribe
|
|
|
|
▸ **subscribe**(self: *`MockState`*, type: *`string`*, method: *`string`*, params: *`Array`<`any`>*): `Promise`<`number`>
|
|
|
|
*Defined in [mock/subscribe.ts:7](https://github.com/polkadot-js/api/blob/64e3ca6/packages/rpc-provider/src/mock/subscribe.ts#L7)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| self | `MockState` |
|
|
| type | `string` |
|
|
| method | `string` |
|
|
| params | `Array`<`any`> |
|
|
|
|
**Returns:** `Promise`<`number`>
|
|
|
|
___
|
|
|