Skip to content

StateOverrides.toRpc

Converts an StateOverrides.StateOverrides to an StateOverrides.Rpc.

Imports

Named
import { StateOverrides } from 'ox'

Examples

import { StateOverrides } from 'ox'
 
const stateOverrides = StateOverrides.toRpc({
  '0x0000000000000000000000000000000000000000': {
    balance: 1n,
  },
})

Definition

function toRpc(
  stateOverrides: StateOverrides,
): Rpc

Source: src/core/StateOverrides.ts

Parameters

stateOverrides

  • Type: StateOverrides

The state overrides to convert.

Return Type

An instantiated StateOverrides.Rpc.

Rpc