# AgentCash

AgentCash discovers the marketplace OpenAPI document and handles the 402 retry with its local wallet.

```text
Discover https://energy.netzhandwerker.de/openapi.json.
Call GET /v3/opportunities for a 120-minute compute workload in DE-LU before my deadline.
If buy_recommended is true, buy POST /v3/dispatch-plan for 0.02 USDC.
Stop on HTTP 409. Return the dispatch plan and payment_receipt. Never expose the wallet key or payment proof.
```

Expected flow: public preflight → x402 challenge → AgentCash wallet authorization → identical paid retry → settled result. Run AgentCash onboarding separately and set a per-call budget before allowing purchases.

