Skip to main content
All use cases
AI-native

Machine spend (x402)

Pay-per-call APIs in USDC

1 USDC
spent per call, sealed with the mandate

What the agent does

An x402-priced API answers with a quote; the agent settles it in USDC from its wallet slot, inside the per-tx cap, and the receipt is sealed with the mandate that allowed it. Machine-to-machine spend with a budget, not a blank check.

One call

machine-spend-x402.ts
await session.send("Fetch the market data; pay the x402 quote if it is under 1 USDC.");
1 USDC · sealedreceipt · rcp_machin

MCP servers wired

Machine spend (x402) — CodeSpar | CodeSpar