# ZswapLocalState

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

# Interface: ZswapLocalState

Tracks the coins consumed and produced throughout circuit execution.

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

### coinPublicKey[​](#coinpublickey "Direct link to coinPublicKey")

```
coinPublicKey: string;
```

The Zswap coin public key of the user executing the circuit.

***

### currentIndex[​](#currentindex "Direct link to currentIndex")

```
currentIndex: bigint;
```

The Merkle tree index of the next coin produced.

***

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

```
inputs: QualifiedShieldedCoinInfo[];
```

The coins consumed as inputs to the circuit.

***

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

```
outputs: {

  coinInfo: ShieldedCoinInfo;

  recipient: Recipient;

}[];
```

The coins produced as outputs from the circuit.

#### coinInfo[​](#coininfo "Direct link to coinInfo")

```
coinInfo: ShieldedCoinInfo;
```

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

```
recipient: Recipient;
```
