# EncodedStateValue

> 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) / EncodedStateValue

# Type Alias: EncodedStateValue

```
type EncodedStateValue = 

  | {

  tag: "null";

}

  | {

  content: AlignedValue;

  tag: "cell";

}

  | {

  content: Map<AlignedValue, EncodedStateValue>;

  tag: "map";

}

  | {

  content: EncodedStateValue[];

  tag: "array";

}

  | {

  content: [number, Map<bigint, [Uint8Array, undefined]>];

  tag: "boundedMerkleTree";

};
```

An alternative encoding of [StateValue](https://docs.midnight.network/api-reference/compact-runtime/classes/StateValue.md) for use in [Op](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/Op.md) for technical reasons
