Contract reference
Use the same contract details from the on-chain orders page:- Script hash:
9e130eb0323f31df50bfbb731f35f5a795a630ef727b4ba272460b55 - Reference UTxO:
2a6b847da15d7bfa3ac23af67590c2d6c98e8b485545d883dd72da322ccfd38e#0 - Script CBOR: see contract information
Execution units and redeemer
| Parameter | Value |
|---|---|
| Memory | 162,000 |
| Steps | 60,000,000 |
| Redeemer | Constr 0 [] |
| Redeemer CBOR | d87980 |
| Required signer | User’s payment key hash from cancelPkh |
Transaction structure
Inputs:- Order UTxO to cancel
- User’s UTxO for fees
- Redeemer: Empty constructor
Constr 0 [](CBOR:d87980) - Required signer: User’s payment key hash (from
cancelPkhin the datum) - Script reference: Use the reference UTxO or attach the script CBOR directly
- Execution units: See table above
- User’s address with all funds from the cancelled order (including collateral)
- User’s change output (if any)
Cancel order flow
Add order UTxO as input
Include:
- Empty redeemer:
Constr 0 [] - Required signer: payment key hash from
cancelPkh - Script reference or inline script
- Execution units from contract info
Important notes
Only the user who created the order can cancel it — the transaction must be signed by the key corresponding to
cancelPkh.- All ADA from the order (including collateral and fees) is returned to the user
- The user’s address is extracted from the datum
addressfield - Transaction must be signed by the key corresponding to
cancelPkh