# z.RpcSchema.from Types

<a id="zrpcschemafromnamespace" />

## `z.RpcSchema.from.Namespace`

A record of `{ params, returns }` Zod schemas keyed by method name.

```ts
type Namespace = Record<string, {
        params: z.ZodMiniType;
        returns: z.ZodMiniType;
    }>
```

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

<a id="zrpcschemafromreturntype" />

## `z.RpcSchema.from.ReturnType`

The normalized `RpcSchema.Namespace` derived from `from.Namespace`.

```ts
type ReturnType = {
        [method in keyof namespace & string]: Item<method, namespace[method]['params'], namespace[method]['returns']>;
    }
```

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