arbitova-x402-example
April 16, 2026 · View on GitHub
Protect x402 agent-to-agent payments with Arbitova dispute arbitration.
When AI agents pay each other using x402 (HTTP 402 + crypto), there's no recourse if the seller doesn't deliver. Arbitova adds a trust layer: register the transaction, record evidence, and trigger N=3 AI arbitration if a dispute arises.
How it works
Buyer Agent Seller Agent Arbitova
| | |
|--- GET /resource ----------->| |
|<-- 402 (price: 0.50 USDC) ---| |
|--- x402 payment ------------>| |
| |--- register tx ---------->|
| |--- deliver + evidence --->|
|<-- content + tx ID ---------| |
| | |
| (if dispute) | |
|--- dispute(txId) ---------------------------------------->|
|<-- verdict (buyer-wins 87%) ------------------------------|
Quick start
git clone https://github.com/jiayuanliang0716-max/arbitova-x402-example.git
cd arbitova-x402-example
npm install
Get an API key at arbitova.com, then:
# Run the quick demo
ARBITOVA_API_KEY=ak_xxx node index.js
# Or run buyer + seller separately
ARBITOVA_API_KEY=ak_xxx node seller.js # Terminal 1
ARBITOVA_API_KEY=ak_xxx node buyer.js # Terminal 2
Files
| File | Description |
|---|---|
index.js | Quick demo: register, deliver, dispute, verdict |
seller.js | x402 seller agent with Arbitova protection |
buyer.js | x402 buyer agent with dispute capability |
What Arbitova does
- Registers transactions before delivery, creating an audit trail
- Records evidence (delivery proofs, complaints, communications)
- N=3 AI arbitration when disputes arise (3 LLMs vote, majority wins)
- Non-blocking — if Arbitova is down, your transaction still works
Links
- Arbitova — A2A transaction trust layer
- Arbitova SDK — npm package
- x402 Protocol — HTTP 402 payments
- Live Verdicts — Public arbitration feed
License
MIT