CAP-402

Documentation

CAP-402 Documentation

Confidential execution infrastructure that agents must use once they scale. We take a cut when agents make money.

🔌
API Reference
Complete REST API documentation. Endpoints, parameters, responses, and error codes.
🛠️
SDK Reference
Build autonomous agents with our TypeScript SDK. Trading, monitoring, and analytics templates.
📄
Whitepaper
Protocol specification, architecture, privacy stack, and economic model.
💰
Economic Choke Points
Arcium MPC, Inco FHE, Noir ZK — mandatory above capital thresholds. Where agents must pay.

⚡ Quick Start

import { cap402 } from '@cap402/sdk';

// Get token price
const price = await cap402.price('SOL');
console.log(`SOL: $${price}`);

// Get wallet balances
const wallet = await cap402.wallet('YOUR_ADDRESS');
console.log(`Total: $${wallet.total_usd}`);

// Prepare a swap (agent does the work, you sign)
const swap = await cap402.swap('SOL', 'USDC', 10);
console.log(`Would receive: ${swap.amount_out} USDC`);