# VmResults

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / VmResults

# Class: VmResults

Represents the results of a VM call

## Properties[​](#properties "Direct link to Properties")

### events[​](#events "Direct link to events")

```
readonly events: GatherResult[];
```

The events that got emitted by this VM invocation

***

### gasCost[​](#gascost "Direct link to gasCost")

```
readonly gasCost: RunningCost;
```

The computed gas cost of running this VM invocation

***

### stack[​](#stack "Direct link to stack")

```
readonly stack: VmStack;
```

The VM stack at the end of the VM invocation

## Methods[​](#methods "Direct link to Methods")

### toString()[​](#tostring "Direct link to toString()")

```
toString(compact?): string;
```

#### Parameters[​](#parameters "Direct link to Parameters")

##### compact?[​](#compact "Direct link to compact?")

`boolean`

#### Returns[​](#returns "Direct link to Returns")

`string`
