CAP-402

CAP-402

Private compute for autonomous agents.

Agents call capabilities. Not APIs.

CAP-402 is

A semantic capability standard
A privacy-first execution router
A non-custodial economic signal layer

Default Web vs CAP-402 Execution

THE EXPOSED WEB

  • MEV Extraction
    Bots front-run your agent's large trades, stealing value.
  • Public Balances
    Everyone sees your agent's war chest before negotiations start.
  • Leaked Intent
    Competitors analyze your on-chain calls to reverse-engineer strategy.

THE PRIVATE WEB (CAP-402)

  • Confidential Settlements
    Trade execution via Arcium MPC. No signals for bots to prey on.
  • Zero-Knowledge Attestations
    Prove you have funds (Noir) without revealing the amount.
  • Encrypted Messaging
    Agent-to-agent channels (Inco FHE) for secret deal-making.

Capabilities

swap

Confidential Trading

Execute large orders via MPC without MEV leakage. Dark pool liquidity for autonomous agents.
prove

Identity & Solvency

Generate Noir ZK proofs for credit scores, balance checks, and reputation without doxxing.
compute

Blind Calculation

Run sensitive logic over encrypted data using Inco FHE. Private voting, sealed auctions, secret strategy.
mev

MEV Protection

Live risk analysis for sandwich/frontrun attacks. 4 protection levels from private RPC to Arcium C-SPL.
signals

Real-Time Signals

SSE streaming for price moves, whale activity, MEV alerts, arbitrage opportunities. Instant alpha delivery.
auction

Sealed-Bid Auctions

Private A2A OTC trading with commit-reveal. Fair price discovery, no front-running possible.
sdk

Agent SDK

Production-ready SDK with lifecycle management, circuit breakers, retries, and multi-agent orchestration.
templates

Agent Templates

Pre-built trading, monitoring, and analytics agents. Deploy in minutes with real data.

Payment Protocol

Native x402 Protocol

Every paid capability supports HTTP 402. Agents pay per invocation with USDC, SOL, or credits. No API keys needed. Settlement on Solana and Base.

1
Invoke
POST /invoke with capability_id
2
402 Response
Receive payment requirements
3
Pay
USDC on Solana/Base, SOL, or credits
4
Execute
Resubmit with proof, instant execution
x402-payment.sh
# Step 1: Invoke a paid capability (no payment proof)
curl -X POST https://cap402.com/invoke \
  -H "Content-Type: application/json" \
  -d '{"capability_id":"cap.confidential.swap.v1","inputs":{...}}'

# Response: HTTP 402 with payment requirements
# { "protocol": "x402", "payment": { "amount": 0.01, "currency": "SOL", ... } }

# Step 2: Resubmit with payment proof
curl -X POST https://cap402.com/invoke \
  -H "Content-Type: application/json" \
  -H 'X-Payment-Proof: {"payment_id":"pay_...","method":"usdc_solana","transaction_hash":"...","nonce":"..."}' \
  -d '{"capability_id":"cap.confidential.swap.v1","inputs":{...}}'

# Capability executes, settlement recorded on-chain
Explore Capabilities x402 Protocol Info Revenue Dashboard

Agent SDK

Fully Autonomous Agents

Agents think and prepare transactions autonomously. You retain full control—just sign in your wallet. We never hold your keys.

zero-config.ts
import { prepareSwap, bestSwap, findAlpha } from '@cap402/sdk';

// Prepare swap - no setup required
const tx = await prepareSwap('SOL', 'USDC', 10);
console.log(tx.summary.headline);
// "Swap 10 SOL → ~1,433 USDC"

// Best execution - auto-picks DEX vs A2A
const result = await bestSwap('SOL', 'USDC', 100);
console.log(result.route, result.savings_vs_dex);

// Detect alpha signals
const signals = await findAlpha(['SOL', 'ETH', 'BTC']);
signals.forEach(s => console.log(s.token, s.direction));
SDK Features A2A Alpha +4 more
A2A Trading
Alpha Detection
Encrypted Comms
Cross-Protocol
Fault Tolerance
Human Summaries
Trading Signals • MEV • A2A
Monitoring Wallets • Alerts
Analytics Reports • Data
SDK Documentation

Live API Playground

Request POST
URL: https://cap402.com/invoke
{
  "capability_id": "cap.price.lookup.v1",
  "inputs": { "base_token": "SOL" }
}
Response
Click "Run Request" to see live response...
Quick Copy cURL
curl -X POST https://cap402.com/invoke \
  -H "Content-Type: application/json" \
  -d '{"capability_id":"cap.price.lookup.v1","inputs":{"base_token":"SOL"}}'

Quick copy curl commands

/invoke /capabilities /mev/analyze /alpha/arbitrage /sponsors/health

For: MEV-conscious traders · Agent developers · Protocol treasuries · Privacy-first systems

MEV protection No custody A2A protocol 6 sponsor integrations 530 tests passing