# encodeQualifiedShieldedCoinInfo

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

# Function: encodeQualifiedShieldedCoinInfo()

```
function encodeQualifiedShieldedCoinInfo(coin): {

  color: Uint8Array;

  mt_index: bigint;

  nonce: Uint8Array;

  value: bigint;

};
```

Encode a [QualifiedShieldedCoinInfo](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/QualifiedShieldedCoinInfo.md) into a Compact's `QualifiedShieldedCoinInfo` TypeScript representation

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

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

[`QualifiedShieldedCoinInfo`](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/QualifiedShieldedCoinInfo.md)

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

```
{

  color: Uint8Array;

  mt_index: bigint;

  nonce: Uint8Array;

  value: bigint;

}
```

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

```
color: Uint8Array;
```

### mt\_index[​](#mt_index "Direct link to mt_index")

```
mt_index: bigint;
```

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

```
nonce: Uint8Array;
```

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

```
value: bigint;
```
