hydra-heads
About this Protocol
Cardano L1 transactions that drive a Hydra Head through its lifecycle
Parties
The participants involved in this protocol's transactions.
Environment
Configuration values required to execute this protocol's transactions.
Transactions
The transactions defined in this protocol, with their parameters, inputs, and outputs.
fanout
Finalize a Closed head past its deadline: burn ST + PTs and materialize the L2 UTxO set on L1.
Diagram
Parameters
Inputs
Outputs
contest
Post a newer snapshot during the contestation window to override the closed state.
Diagram
Parameters
Inputs
Outputs
init
Open a new Hydra head: consume a seed UTxO and mint ST + one PT per participant.
Diagram
Parameters
Inputs
Outputs
recover
Reclaim a µDeposit UTxO after its deadline has passed.
Diagram
Parameters
Inputs
Outputs
decrement
Release funds from the head onto L1 without closing it (incremental decommit).
Diagram
Parameters
Inputs
Outputs
deposit
Lock new funds at µDeposit for an incremental commit, awaiting an L2 snapshot.
Diagram
Parameters
Inputs
Outputs
commit
Move a participant's PT from µInitial to µCommit, locking the funds they want inside the head.
Diagram
Parameters
Inputs
Outputs
increment
Pull an L2-confirmed deposit into the head, bumping snapshot number and utxo hash.
Diagram
Parameters
Inputs
Outputs
collect_com
Aggregate every µCommit UTxO into the head; transition Initial → Open.
Diagram
Parameters
Inputs
Outputs
close
Publish a confirmed snapshot to L1, transitioning the head Open → Closed.
Diagram
Parameters
Inputs
Outputs
abort
Cancel an `Initial` head: burn ST + PTs, refund pending µCommit funds.
Diagram
Parameters
Inputs
Outputs
Profiles
Pre-configured sets of environment and party values for different deployment targets.