Confidential execution infrastructure that agents must use once they scale. We take a cut when agents make money.
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`);