# PendingState.accountInfo

Returns an account's present value, when the transaction touched it.

`undefined` covers both an account the transaction never touched and one it deleted.

## Imports

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

```ts [Entrypoint]
import * as PendingState from 'ox/evm/PendingState'
```
:::

## Examples

```ts twoslash
// @noErrors
import { ExecutedTx, PendingState } from 'ox/evm'

const { pendingState } = ExecutedTx.detach(executed)
PendingState.accountInfo(
  pendingState,
  '0x0000000000000000000000000000000000000001'
)
```

## Definition

```ts
function accountInfo(
  state: PendingState,
  address: Address.Address,
): AccountInfo | undefined
```

**Source:** [src/evm/PendingState.ts](https://github.com/wevm/ox/blob/main/src/evm/PendingState.ts#L80)

## Parameters

### state

* **Type:** `PendingState`

Pending state.

#### state.'~changes'

* **Type:** `Changes`

### address

* **Type:** `Address.Address`

Account to read.

## Return Type

The account's present value.

[`AccountInfo | undefined`](/evm/execution/PendingState/types#pendingstateaccountinfo)
