x402 made any resource payable by any agent. c402 makes any computation confidential and payable - same pattern, one level deeper. A c402 server declares a TEE-attested confidential endpoint; any client pays and consumes it, knowing nothing about the implementation. Two headers on top of x402.
app.post("/decide", c402({price: "0.01", token: USDC, network: "eip155:11155111",facilitator: FACILITATOR, contract: CDE, payTo: PAY_TO,schema: { input: "euint256", output: "treasury-action" },compute: async (input) => {// runs inside the iExec Nox TEEreturn await decideConfidentially(input);},}));
const call = c402Fetch({signer, network: "eip155:11155111", rpcUrl,});const res = await call("http://cde/decide", {body: { exposure, signal },});res.result; res.attestation; res.verified.valid;
Paste a c402 endpoint, decode its headers, pay, and verify the attestation on-chain.