> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# BlockOverrides.toRpc

:::info
`BlockOverrides.toRpc` is a re-export of ox's [`BlockOverrides.toRpc`](https://oxlib.sh/api/BlockOverrides/toRpc). Refer to the ox documentation for the full reference.
:::

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

## Imports

```ts
import { BlockOverrides } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { BlockOverrides } from 'viem/utils'

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
```

## Parameters

### blockOverrides

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

The block overrides to convert.

## Return Type

An instantiated [`BlockOverrides.Rpc`](/docs/utilities/blockoverrides/types#rpc).

`Rpc`
