# TxResult Types

## `TxResult.Log`

A log emitted during execution.

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

## `TxResult.Stop`

Reason the interpreter stopped.

`stop`, `return`, and `selfDestruct` are successful. Everything else is a revert or an exceptional halt, which differ in whether gas is refunded.

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

## `TxResult.TxResult`

Outcome of executing a transaction.

Every field is the engine's, with only snake-case to camel-case adaptation. A revert or an exceptional halt is a successful execution that returns `status: false`, not an error: errors are reserved for transactions the engine refused to run and for state the source could not supply.

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

## `TxResult.WithState`

A transaction's result paired with the state it detached into.

The shape [`ExecutedTx.detach`](/evm/execution/ExecutedTx/detach) produces.

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