# EncodedCoinInfo

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

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

***

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

# Interface: EncodedCoinInfo

A [CoinInfo](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/CoinInfo.md) with its fields encoded as byte strings. This representation is used internally by the contract executable.

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

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

```
readonly color: Uint8Array;
```

The coin's type, identifying the currency it represents.

***

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

```
readonly nonce: Uint8Array;
```

The coin's randomness, preventing it from colliding with other coins.

***

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

```
readonly value: bigint;
```

The coin's value, in atomic units dependent on the currency. Bounded to be a non-negative 64-bit integer.
