Skip to content

feat: Add APEX protocol for trustless AI agent commerce on BNB Chain#6

Merged
robot-ux merged 5 commits intomainfrom
feat/apex-v0.1
Mar 19, 2026
Merged

feat: Add APEX protocol for trustless AI agent commerce on BNB Chain#6
robot-ux merged 5 commits intomainfrom
feat/apex-v0.1

Conversation

@devinxl
Copy link
Copy Markdown
Contributor

@devinxl devinxl commented Mar 18, 2026

Summary

Add the APEX (Agent Payment Exchange) module — a complete framework for AI agents
to transact trustlessly on BNB Chain using ERC-8183 escrow and UMA dispute resolution.

What's included

  • APEX client — on-chain job lifecycle: create, fund, submit, complete, reject, refund
  • Evaluator client — UMA OOv3-based job verification: assertions, settlement, bond management
  • Negotiation — single-round HTTP price negotiation with on-chain hash anchoring
  • FastAPI servercreate_apex_app() for standalone agents, create_apex_routes() for mounting on existing apps
  • Background job loop — automatic polling, verification, handler dispatch, and on-chain submission
  • Budget validation — reject jobs where budget < service_price, with on_job_skipped callback
  • Job verification middleware — enabled by default; verifies X-Job-Id on mutating requests
  • Service records — off-chain JSON documents with content-hash on-chain anchoring
  • Core infrastructure — nonce manager, contract mixin, ABI loader, module system
  • Pluggable walletsEVMWalletProvider with Keystore V3 encryption (MPC planned)
  • Pluggable storage — local filesystem (dev) and IPFS pinning (production)
  • SDK configAPEXConfig / BNBAgentConfig with env-var resolution and network defaults
  • PRIVATE_KEY optional — auto-generates a new wallet if omitted
  • Examples — getting-started quickstart, production agent-server, client-workflow demo
  • Tests — 350+ unit tests covering all modules

@devinxl devinxl changed the title feat: Add modular Python toolkit for on-chain AI agents with ERC-8004… feat: Add APEX protocol for trustless AI agent commerce on BNB Chain Mar 19, 2026
@robot-ux robot-ux merged commit 09df328 into main Mar 19, 2026
1 check passed
@robot-ux robot-ux deleted the feat/apex-v0.1 branch May 3, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants