UnshieldedTransaction

@Serializable
data class UnshieldedTransaction(val id: Int, val hash: String, val type: TransactionType, val protocolVersion: Int, val identifiers: List<String>? = null, val block: UnshieldedTransaction.BlockInfo? = null, val fees: UnshieldedTransaction.FeeInfo? = null, val transactionResult: UnshieldedTransaction.TransactionResult? = null)

Unshielded transaction from Midnight blockchain.

Represents a transaction affecting unshielded (transparent) addresses. Matches Midnight SDK's UnshieldedTransactionSchema.

Constructors

Link copied to clipboard
constructor(id: Int, hash: String, type: TransactionType, protocolVersion: Int, identifiers: List<String>? = null, block: UnshieldedTransaction.BlockInfo? = null, fees: UnshieldedTransaction.FeeInfo? = null, transactionResult: UnshieldedTransaction.TransactionResult? = null)

Types

Link copied to clipboard
@Serializable
data class BlockInfo(val timestamp: Long)

Block information for a transaction.

Link copied to clipboard
@Serializable
data class FeeInfo(val paidFees: String, val estimatedFees: String)

Fee information for a transaction.

Link copied to clipboard

Transaction execution result.

Properties

Link copied to clipboard

Block information

Link copied to clipboard

Optional fee information (for regular transactions)

Link copied to clipboard

Transaction hash (hex string)

Link copied to clipboard
val id: Int

Unique transaction ID from indexer

Link copied to clipboard
val identifiers: List<String>? = null

Optional array of identifiers (for regular transactions)

Link copied to clipboard

Midnight protocol version

Link copied to clipboard

Optional transaction result (for regular transactions)

Link copied to clipboard

Transaction type (Regular or System)