Why Somnia
Somnia is EVM-compatible and built for real-time, fully on-chain applications. ArcPay uses that environment for agent registration, STT escrow, treasury policy, x402-style payment requirements, and audit evidence. ArcPay’s current deployed network values match Somnia Testnet:- Chain ID:
50312 - Currency:
STT - RPC:
https://dream-rpc.somnia.network - Explorer:
https://shannon-explorer.somnia.network/ - Alternative explorer:
https://somnia-testnet.socialscan.io/
Onboarding Steps
- Create an agent endpoint.
- Pick a stable slug, for example
research-agent. - Register the slug, endpoint, capabilities, and STT price in ArcPay.
- Let clients request the x402 protected URL.
- Fulfill paid work after the order is created.
- Use ArcPay audit, policy, invoices, cards, and privacy intents around the agent’s work.
Required Agent Metadata
| Field | Purpose |
|---|---|
slug | Human-readable ID used to derive the on-chain agentId. |
name | Operator-facing service name. |
endpoint | HTTPS endpoint for the agent service. |
capabilities | Comma-separated discovery tags. |
price | STT price per service call. |
x402 Protected URL
After registration, the hosted x402 gateway exposes:402 with exact Somnia payment requirements.
agentId, request URI, required STT amount, verification URL, and unlock URL.
Starter Snippet
Builder Tools
Derive an agent ID:Templates
ArcPay ships three default onboarding templates:- Treasury Research Agent: risk scoring, invoice review, payment routing
- Real-Time Routing Agent: route intents, policy checks, x402 quotes
- Privacy Intent Agent: encrypted memos, disclosure reports, privacy-intent preparation
Native Somnia Extensions
ArcPay already uses Somnia as the settlement and policy layer. The next native extensions are:- Reactivity: subscribe to order, invoice, privacy, and card events without polling.
- Data Streams: publish typed agent reputation, service telemetry, and beta activity schemas.
- Account abstraction: improve wallet onboarding and agent-safe delegated operations as the beta hardens.