# BlockOverrides.toRpc

Converts an [`BlockOverrides.BlockOverrides`](/api/BlockOverrides/types#blockoverrides) to an [`BlockOverrides.Rpc`](/api/BlockOverrides/types#rpc).

## Imports

:::code-group
```ts [Named]
import { BlockOverrides } from 'ox'
```

```ts [Entrypoint]
import * as BlockOverrides from 'ox/BlockOverrides'
```
:::

## Examples

```ts twoslash
import { BlockOverrides } from 'ox'

const blockOverrides = BlockOverrides.toRpc({
  baseFeePerGas: 1n,
  blobBaseFee: 2n,
  feeRecipient:
    '0x0000000000000000000000000000000000000000',
  gasLimit: 4n,
  number: 5n,
  prevRandao: 6n,
  time: 78187493520n,
  withdrawals: [
    {
      address: '0x0000000000000000000000000000000000000000',
      amount: 1n,
      index: 0,
      validatorIndex: 1
    }
  ]
})
```

## Definition

```ts
function toRpc(
  blockOverrides: toRpc.Input,
): Rpc
```

**Source:** [src/core/BlockOverrides.ts](https://github.com/wevm/ox/blob/main/src/core/BlockOverrides.ts#L141)

## Parameters

### blockOverrides

* **Type:** `toRpc.Input`

The block overrides to convert.

## Return Type

An instantiated [`BlockOverrides.Rpc`](/api/BlockOverrides/types#rpc).

`Rpc`
