# BlockOverrides.fromRpc

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

## 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.fromRpc({
  baseFeePerGas: '0x1',
  blobBaseFee: '0x2',
  feeRecipient:
    '0x0000000000000000000000000000000000000000',
  gasLimit: '0x4',
  number: '0x5',
  prevRandao: '0x6',
  time: '0x1234567890',
  withdrawals: [
    {
      address: '0x0000000000000000000000000000000000000000',
      amount: '0x1',
      index: '0x0',
      validatorIndex: '0x1'
    }
  ]
})
```

## Definition

```ts
function fromRpc(
  rpcBlockOverrides: Rpc,
): BlockOverrides
```

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

## Parameters

### rpcBlockOverrides

* **Type:** `Rpc`

The RPC block overrides to convert.

## Return Type

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

`BlockOverrides.BlockOverrides`
