# SystemTransaction

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

A system Midnight transaction.

```
type SystemTransaction implements Transaction {

  id: Int!

  hash: HexEncoded!

  protocolVersion: Int!

  raw: HexEncoded!

  block: Block!

  contractActions: [ContractAction!]!

  unshieldedCreatedOutputs: [UnshieldedUtxo!]!

  unshieldedSpentOutputs: [UnshieldedUtxo!]!

  zswapLedgerEvents: [ZswapLedgerEvent!]!

  dustLedgerEvents: [DustLedgerEvent!]!

}
```

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

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

The transaction ID.

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

The hex-encoded transaction hash.

#### [`SystemTransaction.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.

#### [`SystemTransaction.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 transaction content.

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

The block for this transaction.

#### [`SystemTransaction.contractActions`](#contract-actions) ● [`[ContractAction!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/contract-action.md) non-null interface[​](#contract-actions "Direct link to contract-actions")

The contract actions for this transaction.

#### [`SystemTransaction.unshieldedCreatedOutputs`](#unshielded-created-outputs) ● [`[UnshieldedUtxo!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/unshielded-utxo.md) non-null object[​](#unshielded-created-outputs "Direct link to unshielded-created-outputs")

Unshielded UTXOs created by this transaction.

#### [`SystemTransaction.unshieldedSpentOutputs`](#unshielded-spent-outputs) ● [`[UnshieldedUtxo!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/unshielded-utxo.md) non-null object[​](#unshielded-spent-outputs "Direct link to unshielded-spent-outputs")

Unshielded UTXOs spent (consumed) by this transaction.

#### [`SystemTransaction.zswapLedgerEvents`](#zswap-ledger-events) ● [`[ZswapLedgerEvent!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/zswap-ledger-event.md) non-null object[​](#zswap-ledger-events "Direct link to zswap-ledger-events")

Zswap ledger events of this transaction.

#### [`SystemTransaction.dustLedgerEvents`](#dust-ledger-events) ● [`[DustLedgerEvent!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/dust-ledger-event.md) non-null interface[​](#dust-ledger-events "Direct link to dust-ledger-events")

Dust ledger events of this transaction.

### Interfaces[​](#interfaces "Direct link to Interfaces")

#### [`Transaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/transaction.md) interface[​](#transaction- "Direct link to transaction-")

A Midnight transaction.
