# z.RpcSchema.encodeReturns

## Imports

```ts
import { z } from 'ox/zod'

z.RpcSchema.encodeReturns
```

## Definition

```ts
export declare function encodeReturns<const namespace extends Namespace, method extends MethodName<namespace>>(namespace: namespace, method: method, returns: z.output<namespace[method]['returns']>): z.input<namespace[method]['returns']>;
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `namespace` | `namespace` |  |
| `method` | `method` |  |
| `returns` | `z.output<namespace[method]['returns']>` |  |

## Return Type

`z.input<namespace[method]['returns']>`

**Source:** [src/zod/RpcSchema.ts](https://github.com/wevm/ox/blob/main/src/zod/RpcSchema.ts#L454)
