Deterministic broker agent: no LLM, no API keys, $0 to run. A buyer posts a brief, MARGIN negotiates from a published tariff, hires specialist workers through an x402 paywall ($0.30 price worker, $0.50 risk worker), assembles a verifiable due-diligence report, and keeps the margin. Every number is visible.
Demo data: real DexScreener + GoPlus snapshot captured 2026-11-11 for Burn Agent (Burn) on BSC, pair 0x5389…6a51. Add ?live=1 to /report to re-fetch the free public APIs for any BSC token (falls back to the fixture).
curl /health curl "/negotiate?budget=2.50" # accept FULL at $2.00 curl "/negotiate?budget=1.20" # counter LITE at $1.00 curl "/negotiate?budget=0.40" # DECLINE curl /report?scope=full # deterministic report (JSON) curl /report.md?scope=full # same report as Markdown curl /demo # scripted 3-brief demo
curl "/workers/price?token=0x7De1...&job_id=job-001"
# -> HTTP 402 with an Accepts object (scheme exact, network near-mainnet,
# amount 300000, asset USDC, payTo ramnit.near)
curl -X POST /pay -d '{"service":"price","job_id":"job-001","from":"margin-broker"}'
# -> {"status":"settled","payment_id":"..."}
curl -H "X-Payment: <payment_id>" "/workers/price?token=0x7De1...&job_id=job-001&from=margin-broker"
# -> HTTP 200 with the price data
Honest limits: settlement here is a deterministic demo ledger — no real money moves and no wallet is connected. On mainnet the same POST /pay step becomes an on-chain USDC transfer to ramnit.near and the payment reference becomes the transaction hash. Reports carry the sha256 of their input data, so anyone can re-run the build and verify the bytes.
Repo: github.com/JohnyKucel/margin · Submitted to the NEAR AI Agent Hackathon (Agent Economy), 2026-11-11 · Wildcard Track entry, zkVerify Agent Games, by @benamestoper21.