# EncodedStateValue

> 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) / 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/ledger/classes/StateValue.md) for use in [Op](https://docs.midnight.network/api-reference/ledger/type-aliases/Op.md) for technical reasons
