# Hierarchy **RpcCoder** # Methods ## decodeResponse ▸ **decodeResponse**(response: *[JsonRpcResponse](../modules/_types_.md#jsonrpcresponse)*): `any` *Defined in [coder/index.ts:12](https://github.com/polkadot-js/api/blob/1f401d6/packages/rpc-provider/src/coder/index.ts#L12)* **Parameters:** | Name | Type | | ------ | ------ | | response | [JsonRpcResponse](../modules/_types_.md#jsonrpcresponse) | **Returns:** `any` ___ ## encodeJson ▸ **encodeJson**(method: *`string`*, params: *`any` | `Array`<`any`>*): `string` *Defined in [coder/index.ts:33](https://github.com/polkadot-js/api/blob/1f401d6/packages/rpc-provider/src/coder/index.ts#L33)* **Parameters:** | Name | Type | | ------ | ------ | | method | `string` | | params | `any` | `Array`<`any`> | **Returns:** `string` ___ ## encodeObject ▸ **encodeObject**(method: *`string`*, params: *`any` | `Array`<`any`>*): [JsonRpcRequest](../modules/_types_.md#jsonrpcrequest) *Defined in [coder/index.ts:39](https://github.com/polkadot-js/api/blob/1f401d6/packages/rpc-provider/src/coder/index.ts#L39)* **Parameters:** | Name | Type | | ------ | ------ | | method | `string` | | params | `any` | `Array`<`any`> | **Returns:** [JsonRpcRequest](../modules/_types_.md#jsonrpcrequest) ___ ## getId ▸ **getId**(): `number` *Defined in [coder/index.ts:48](https://github.com/polkadot-js/api/blob/1f401d6/packages/rpc-provider/src/coder/index.ts#L48)* **Returns:** `number` ___