# RelevantTransaction

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

A transaction relevant for the subscribing wallet and an optional zswap state Merkle tree collapsed update.

```
type RelevantTransaction {

  transaction: RegularTransaction!

  zswapCollapsedUpdate: MerkleTreeCollapsedUpdate

  collapsedMerkleTree: CollapsedMerkleTree @deprecated

}
```

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

#### [`RelevantTransaction.transaction`](#transaction) ● [`RegularTransaction!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/regular-transaction.md) non-null object[​](#transaction "Direct link to transaction")

A transaction relevant for the subscribing wallet.

#### [`RelevantTransaction.zswapCollapsedUpdate`](#zswap-collapsed-update) ● [`MerkleTreeCollapsedUpdate`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/merkle-tree-collapsed-update.md) object[​](#zswap-collapsed-update "Direct link to zswap-collapsed-update")

Only include a zswap state Merkle tree collapsed update if there is a gap between the current zswap index "driving" the subscription and the zswap start index of the transaction.

#### [`RelevantTransaction.collapsedMerkleTree`](#collapsed-merkle-tree) ● [`CollapsedMerkleTree`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/collapsed-merkle-tree.md) deprecated object[​](#collapsed-merkle-tree "Direct link to collapsed-merkle-tree")

DEPRECATED

Use zswapCollapsedUpdate instead

An optional collapsed Merkle tree.

### Implemented By[​](#implemented-by "Direct link to Implemented By")

[`ShieldedTransactionsEvent`](https://docs.midnight.network/api-reference/midnight-indexer/types/unions/shielded-transactions-event.md) union
