# AccountConfig.fromRpc

Converts a JSON-RPC account configuration to its domain representation.

## Imports

:::code-group
```ts [Named]
import { AccountConfig } from 'ox/tempo'
```

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

## Examples

```ts twoslash
import { AccountConfig } from 'ox/tempo'

const config = AccountConfig.fromRpc({
  owners: [
    {
      owner: '0x1111111111111111111111111111111111111111',
      weight: 1
    }
  ],
  salt: `0x${'00'.repeat(32)}`,
  threshold: 1,
  version: '0x0'
})
```

## Definition

```ts
function fromRpc(
  config: Rpc,
): Config
```

**Source:** [src/tempo/AccountConfig.ts](https://github.com/wevm/ox/blob/main/src/tempo/AccountConfig.ts#L276)

## Parameters

### config

* **Type:** `Rpc`

The JSON-RPC account configuration.

## Return Type

The normalized account configuration.

`Config`
