# AccountOperation.fromRpc

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

## Imports

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

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

## Examples

```ts twoslash
// @noErrors
import { AccountOperation } from 'ox/tempo'

const operation = AccountOperation.fromRpc(value)
```

## Definition

```ts
function fromRpc<operation>(
  operation: operation,
): fromRpc.ReturnValue<operation>
```

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

## Parameters

### operation

* **Type:** `operation`

JSON-RPC account operation.

## Return Type

The validated operation.

`fromRpc.ReturnValue<operation>`
