74 lines
1.4 KiB
Markdown
74 lines
1.4 KiB
Markdown
|
|
|
|
# Hierarchy
|
|
|
|
**RpcCoder**
|
|
|
|
# Methods
|
|
|
|
<a id="decoderesponse"></a>
|
|
|
|
## decodeResponse
|
|
|
|
▸ **decodeResponse**(response: *`JsonRpcResponse`*): `any`
|
|
|
|
*Defined in [coder/index.ts:12](https://github.com/polkadot-js/api/blob/822f15e/packages/rpc-provider/src/coder/index.ts#L12)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| response | `JsonRpcResponse` |
|
|
|
|
**Returns:** `any`
|
|
|
|
___
|
|
<a id="encodejson"></a>
|
|
|
|
## encodeJson
|
|
|
|
▸ **encodeJson**(method: *`string`*, params: * `any` | `Array`<`any`>*): `string`
|
|
|
|
*Defined in [coder/index.ts:33](https://github.com/polkadot-js/api/blob/822f15e/packages/rpc-provider/src/coder/index.ts#L33)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| method | `string` |
|
|
| params | `any` | `Array`<`any`>|
|
|
|
|
**Returns:** `string`
|
|
|
|
___
|
|
<a id="encodeobject"></a>
|
|
|
|
## encodeObject
|
|
|
|
▸ **encodeObject**(method: *`string`*, params: * `any` | `Array`<`any`>*): `JsonRpcRequest`
|
|
|
|
*Defined in [coder/index.ts:39](https://github.com/polkadot-js/api/blob/822f15e/packages/rpc-provider/src/coder/index.ts#L39)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| method | `string` |
|
|
| params | `any` | `Array`<`any`>|
|
|
|
|
**Returns:** `JsonRpcRequest`
|
|
|
|
___
|
|
<a id="getid"></a>
|
|
|
|
## getId
|
|
|
|
▸ **getId**(): `number`
|
|
|
|
*Defined in [coder/index.ts:48](https://github.com/polkadot-js/api/blob/822f15e/packages/rpc-provider/src/coder/index.ts#L48)*
|
|
|
|
**Returns:** `number`
|
|
|
|
___
|
|
|