Files
api/docs/rpc-provider/classes/_coder_index_.rpccoder.md
T
2018-10-29 10:22:46 +00:00

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` &#124; `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` &#124; `Array`<`any`>|
**Returns:** `string`
___
<a id="encodeobject"></a>
## encodeObject
▸ **encodeObject**(method: *`string`*, params: * `any` &#124; `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` &#124; `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`
___