# TxResult

Transaction results, stop reasons, and the gas each reports.

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`TxResult.regularGasSpent`](/evm/execution/TxResult/regularGasSpent) | Returns the regular, non-state gas this transaction contributes to a block: `max(totalGasSpent - stateGasSpent, floorGas)`. |
| [`TxResult.stateGasSpent`](/evm/execution/TxResult/stateGasSpent) | Returns the EIP-8037 state gas this transaction contributes to a block. |
| [`TxResult.txGasUsed`](/evm/execution/TxResult/txGasUsed) | Returns the gas a receipt reports: `max(totalGasSpent - refunded, floorGas)`. |

## Types

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`TxResult.Log`](/evm/execution/TxResult/types#txresultlog) | A log emitted during execution. |
| [`TxResult.Stop`](/evm/execution/TxResult/types#txresultstop) | Reason the interpreter stopped. |
| [`TxResult.TxResult`](/evm/execution/TxResult/types#txresulttxresult) | Outcome of executing a transaction. |
| [`TxResult.WithState`](/evm/execution/TxResult/types#txresultwithstate) | A transaction's result paired with the state it detached into. |
