# ZswapStateChanges

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

# Class: ZswapStateChanges

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

### receivedCoins[​](#receivedcoins "Direct link to receivedCoins")

```
readonly receivedCoins: QualifiedShieldedCoinInfo[];
```

The coins that were received in this state change

***

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

```
readonly source: string;
```

The source of the state change, as a hex-encoded string

***

### spentCoins[​](#spentcoins "Direct link to spentCoins")

```
readonly spentCoins: QualifiedShieldedCoinInfo[];
```

The coins that were spent in this state change
