PreparedTransaction

data class PreparedTransaction(val provenTxHex: String, val contractAddress: String, val circuitName: String, val timings: PipelineTimings, val onChainStateHex: String? = null)

Result of MidnightContract.prepare — a proven transaction ready for later submission via MidnightConfig.submit.

Constructors

Link copied to clipboard
constructor(provenTxHex: String, contractAddress: String, circuitName: String, timings: PipelineTimings, onChainStateHex: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onChainStateHex: String? = null

The on-chain contract state the circuit ran against. MidnightContract.call uses it as the "before" snapshot to confirm the call has been indexed before returning, so a rapid follow-up call reads the updated state instead of rebuilding the identical intent (which the chain's replay guard rejects as IntentAlreadyExists / custom error 182).

Link copied to clipboard
Link copied to clipboard