BlueprintsSurplus MarketOverview

Surplus Market Blueprint

The Surplus Market blueprint defines the template for a prepaid AI inference credit market. Buyers acquire discounted inference capacity through service instances. Operators make markets in credit lots, serve or back redemption, and settle fills on-chain.

Source repo: https://github.com/tangle-network/surplus

Product Shape

AreaSource-backed behavior
Operator binarysurplus-operator for the full Tangle runner; surplus-operator-lite for HTTP-only local operation.
Blueprint categoryinference-market
Default port9100
Hosted apphttps://surplus-market.pages.dev/
SettlementSurplusSettlement with attested quorum or SP1 proof boundary.

Jobs

IDJobStatus
0list_instrumentImplemented.
1configureReserved placeholder.
2start_makingReserved placeholder.
3stop_makingReserved placeholder.
4statusImplemented.
30workflow_tickImplemented; drives market-maker ticks.

Operator API

RoutePurpose
POST /orderPlace limit orders and emit settlement intents.
POST /cancelCancel a resting order.
POST /bookRead depth, reference price, and inventory.
POST /mm-tickPull risk-gated quotes and replace operator quotes.
POST /rfq and POST /rfq/fillQuote and fill signed firm RFQs.
GET /settlement/outboxRead settleable fills.
POST /settlement/flushSubmit fills when chain settlement is enabled.
PageUse it for
Operator RequirementsEnv vars, CLOB setup, privacy mode, app env.
Settlement and InferenceReal inference backend, credit lots, redemption, quorum, SP1.
Dapp and IndexerDapp link-out, metadata gaps, indexed market state.

Source Material

This page is based on the Surplus repo’s README.md, BLUEPRINT.md, blueprint.toml, deploy/blueprint-definition.toml, deploy/blueprint-metadata.json, docs/testnet-release.md, operator/src/config.rs, and operator/src/inference.rs.