# Key

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

[**@midnight/ledger v8.1.3**](https://docs.midnight.network/api-reference/ledger.md)

***

[@midnight/ledger](https://docs.midnight.network/api-reference/ledger/globals.md) / Key

# Type Alias: Key

```
type Key = 

  | {

  tag: "value";

  value: AlignedValue;

}

  | {

  tag: "stack";

};
```

A key used to index into an array or map in the onchain VM
