# ZswapLedgerEvent

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

A zswap related ledger event.

```
type ZswapLedgerEvent {

  id: Int!

  raw: HexEncoded!

  maxId: Int!

  protocolVersion: Int!

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`ZswapLedgerEvent.id`](#id) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#id "Direct link to id")

The ID of this zswap ledger event.

#### [`ZswapLedgerEvent.raw`](#raw) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#raw "Direct link to raw")

The hex-encoded serialized event.

#### [`ZswapLedgerEvent.maxId`](#max-id) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#max-id "Direct link to max-id")

The maximum ID of all zswap ledger events.

#### [`ZswapLedgerEvent.protocolVersion`](#protocol-version) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#protocol-version "Direct link to protocol-version")

The protocol version.

### Returned By[​](#returned-by "Direct link to Returned By")

[`zswapLedgerEvents`](https://docs.midnight.network/api-reference/midnight-indexer/operations/subscriptions/zswap-ledger-events.md) subscription

### Member Of[​](#member-of "Direct link to Member Of")

[`RegularTransaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/regular-transaction.md) object ● [`SystemTransaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/system-transaction.md) object ● [`Transaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/transaction.md) interface
