# Inspector.steps

Returns the instructions a trace recorded, in order.

Empty unless the inspector recorded steps.

## Imports

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

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

## Examples

```ts twoslash
// @noErrors
import { Inspector } from 'ox/evm'

const steps = Inspector.steps(result.trace)
steps[0]?.opcode
```

## Definition

```ts
function steps(
  trace: Inspector.Trace,
): readonly Extract<Event, {
    kind: 'step';
}>[]
```

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

## Parameters

### trace

* **Type:** [`Inspector.Trace`](/evm/execution/Inspector/types#inspectortrace)

Recorded execution.

## Return Type

Each instruction, with its program counter, gas, and stack.

`readonly Extract<Event, {
    kind: 'step';
}>[]`
