Skip to content
HashmarkLabs

Protocol engineering

A fully on-⁠chain prediction market on a UTxO chain

Order-book trading rebuilt from first principles for a chain with no shared mutable state.

Status
● Live in production
Client
Private
Market factoryvalidator scriptscreates each marketOn-chain order bookUTxO-nativeopen orderpartial fillfilledEscrow & treasuryvalidatorsOutcome tokensminting policieslimit & market ordersOracle resolutiondispute windowOff-chain· transaction builders· event watchers· deployment tooling1A UTxO chain has no shared mutable state,so every order lives in its own UTxO2A partial fill leavesa smaller order behindon-chainoff-chainan order

Swipe to see the whole drawing →

Discipline
Protocol engineering
Client
Private
Figure
FIG. 5
FIG. 5: On-chain components, simplified · ● live in production

The problem

Order books assume shared mutable state. A UTxO chain doesn’t have that, so trading had to be designed again from first principles.

What we built

3 parts
  1. A

    Limit and market orders with partial fills, on an order book that lives fully on-chain and works with UTxOs natively.

  2. B

    A market factory, escrow and treasury validators, and outcome-token minting policies, written as on-chain validator scripts.

  3. C

    Oracle resolution with dispute windows, plus the transaction builders, event watchers and deployment tooling around it.

Stack

  • UTxO model
  • Validator scripts
  • Off-chain tx builders
  • Event watchers

Designed and built by our senior engineers. The architects you'd meet on a first call are the people who built this.

Client names stay private. Every system here is real and in production, and we're glad to walk you through the ones relevant to you on a call.

Office hours

Working on something similar?

Your first call is with a senior lead who will own the work. Send a few lines about the product and what's hard about it.

Your point of contact
Vidit Galav, Director
Delivery
Our team works across US, European, APAC and Middle East hours.