Somnia · Projects
← The Registry

NERVE

Risk, priced and settled by agents.

Warm-slate fintech ops terminal

The problem

Risk, priced and settled by agents.

On-chain protection markets normally depend on a trusted backend to feed in real-world facts, so users cannot verify why a policy paid out or not. NERVE turns external events — a BTC price threshold, rainfall, an outcome — into auditable on-chain state without trusting a hidden oracle.


How it works

The mechanism

A user buys a parametric policy in native STT, escrowed by the RiskDesk contract. The contract requests the resolving fact through a Somnia JSON-API agent (fetchUint) returned under a multi-validator median-of-5 consensus, plus an LLM inferString leg that tags a volatility tier without touching escrow. The callback writes the observed value on-chain, a permissionless keeper can resolve any expired policy, and the contract pays out and emits a receipt trail when the trigger condition is met.

01 · InputPublic factA price, page, record, or metric.
02 · AgentsSomnia committeeFetch & validate under consensus.
03 · ContractRiskDeskWrites the value on-chain.
04 · OutcomeSettlementPays, splits, or forfeits.

Agent pipeline

Who does what

01

Scout

Watches real-world signals and flags the risk worth covering — the live path is BTC downside.

02

Underwriter

Quotes premium and payout with deterministic v1 pricing, then writes the policy on-chain.

03

Resolver

Fires the Somnia JSON-API agent request for the resolving data and awaits the callback.

04

Auditor

Writes a human-readable receipt: source, callback status, decision, payout, and tx hash.


✓ Verified live

Policy resolved on-chain — JSON median price ≤ threshold → status Paid, payout sent (resolution reqId 3737216). View RiskDesk on the Shannon explorer ↗


Screens

/desk

A live trading-desk shell: ticker tape, a four-stage agent pipeline that lights up as Scout→Auditor fire, a monospace activity tape, and a receipts drawer with the on-chain resolution.


Run it yourself

NERVE is live on Somnia Shannon testnet.

Launch NERVE