# RegularTransaction

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

A regular Midnight transaction.

```
type RegularTransaction implements Transaction {

  id: Int!

  hash: HexEncoded!

  protocolVersion: Int!

  raw: HexEncoded!

  transactionResult: TransactionResult!

  identifiers: [HexEncoded!]!

  zswapMerkleTreeRoot: HexEncoded!

  merkleTreeRoot: HexEncoded! @deprecated

  zswapStartIndex: Int!

  startIndex: Int! @deprecated

  zswapEndIndex: Int!

  endIndex: Int! @deprecated

  dustCommitmentStartIndex: Int!

  dustCommitmentEndIndex: Int!

  dustGenerationStartIndex: Int!

  dustGenerationEndIndex: Int!

  fee: String!

  fees: TransactionFees! @deprecated

  block: Block!

  contractActions: [ContractAction!]!

  unshieldedCreatedOutputs: [UnshieldedUtxo!]!

  unshieldedSpentOutputs: [UnshieldedUtxo!]!

  zswapLedgerEvents: [ZswapLedgerEvent!]!

  dustLedgerEvents: [DustLedgerEvent!]!

}
```

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

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

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

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

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

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

The result of applying this transaction to the ledger state.

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

The hex-encoded serialized transaction identifiers.

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

The hex-encoded serialized zswap state Merkle tree root.

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

DEPRECATED

Use zswapMerkleTreeRoot instead

The hex-encoded serialized zswap state Merkle tree root.

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

The start index into the zswap state.

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

DEPRECATED

Use zswapStartIndex instead

The start index into the zswap state.

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

The end index into the zswap state; exclusive, i.e. the next free index.

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

DEPRECATED

Use zswapEndIndex instead

The end index into the zswap state; exclusive, i.e. the next free index.

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

The dust commitment tree start index.

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

The dust commitment tree end index.

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

The dust generation tree start index.

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

The dust generation tree end index.

#### [`RegularTransaction.fee`](#fee) ● [`String!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/string.md) non-null scalar[​](#fee "Direct link to fee")

The fee for this transaction in SPECK (atomic unit of DUST).

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

DEPRECATED

Use fee instead

Fee information for this transaction.

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

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

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

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

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

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

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

[`RelevantTransaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/relevant-transaction.md) object
