BlueprintsSurplus MarketOverview

Surplus Market Blueprint

Surplus is a market for prepaid inference credits.

Buyers acquire discounted credits. Operators sell or make markets in those credits. Settlement happens on-chain, while the order book and quoting run off-chain inside the operator venue. When an operator is bonded as an issuer, it must back credit lots with inference it runs or controls.

Source repo: internal Tangle repository. The public surface is the hosted app and these docs until the repo is public.

What happens in the product

  1. An operator runs a venue.
  2. Buyers and sellers place orders or request firm quotes.
  3. The venue matches orders and emits settlement intents.
  4. Signed fills settle on-chain.
  5. Credit lots redeem against inference capacity.
  6. If an issuer defaults, settlement and slashing paths decide the remedy.

The order book is only the entry point. The hard part is making a credit redeemable.

Operator shapes

BinaryUse
surplus-operator-liteHTTP venue only. Good for local and venue API work.
surplus-operatorFull Tangle runner, built with the blueprint feature. Runs as a real blueprint operator.

The full operator runs the venue inside a Tangle BlueprintRunner. The venue starts as a background service, and jobs can drive actions such as listing an instrument, status checks, and workflow ticks.

Venue API

RoutePurpose
POST /orderPlace a limit order and produce fills or settlement intents.
POST /cancelCancel a resting order.
POST /bookRead depth, reference price, and operator inventory.
POST /mm-tickPull risk-gated quotes from the market-making sidecar and replace quotes.
POST /refPush a reference price.
POST /order-signedPlace an EIP-712 signed firm order.
POST /rfqRequest a signed short-TTL quote.
POST /rfq/fillCross a firm quote with a countersigned taker order.
GET /settlement/outboxRead fills waiting for settlement.
POST /settlement/flushSubmit the outbox through the chain path when enabled.

The operator is the venue. The mm-sidecar suggests quotes. The risk gate decides whether those quotes can be placed.

Jobs

The blueprint manifest defines:

JobCurrent status
list_instrumentImplemented.
configureReserved placeholder in the current compact definition.
start_makingReserved placeholder in the current compact definition.
stop_makingReserved placeholder in the current compact definition.
statusImplemented.
workflow_tickImplemented. Pulls reference price, sidecar quotes, and updates operator quotes.

The placeholders preserve compact job index compatibility. Do not remove them without changing the runtime assumptions.

PageUse it for
Operator RequirementsVenue host, settlement keys, inference backend, CLOB, and privacy mode.
Settlement and InferenceCredit lots, redemption, attester quorum, SP1 path, and inference proof boundary.
Dapp IntegrationCurrent link-out app, metadata gap, protocol state, and live venue checks.

Sources used

This page is grounded in the repo README.md, BLUEPRINT.md, blueprint.toml, deploy/blueprint-definition.toml, deploy/blueprint-metadata.json, docs/testnet-release.md, operator/src/bin/blueprint.rs, and operator/src/http.rs.