# Hierarchy **RpcCoder** # Methods ## decodeResponse ▸ **decodeResponse**(response: *`JsonRpcResponse`*): `any` *Defined in [coder/index.ts:12](https://github.com/polkadot-js/api/blob/96dc7df/packages/rpc-provider/src/coder/index.ts#L12)* **Parameters:** | Param | Type | | ------ | ------ | | response | `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/96dc7df/packages/rpc-provider/src/coder/index.ts#L33)* **Parameters:** | Param | Type | | ------ | ------ | | method | `string` | | params | `any` | `Array`<`any`>| **Returns:** `string` ___ ## encodeObject ▸ **encodeObject**(method: *`string`*, params: * `any` | `Array`<`any`>*): `JsonRpcRequest` *Defined in [coder/index.ts:39](https://github.com/polkadot-js/api/blob/96dc7df/packages/rpc-provider/src/coder/index.ts#L39)* **Parameters:** | Param | Type | | ------ | ------ | | method | `string` | | params | `any` | `Array`<`any`>| **Returns:** `JsonRpcRequest` ___ ## getId ▸ **getId**(): `number` *Defined in [coder/index.ts:48](https://github.com/polkadot-js/api/blob/96dc7df/packages/rpc-provider/src/coder/index.ts#L48)* **Returns:** `number` ___