1. Executive Summary
As decentralized organizations (DAOs) and AI agents become dominant economic actors, the traditional banking stack is becoming obsolete. Protocol Banks introduces a programmable control plane for agent commerce: identity, mandate, commerce orders, agent authorization, cards, audit and non-custodial execution. By making every agent action authorized, bounded and verifiable, Protocol Banks enables safe financial operations for the next generation of digital enterprises.
In v3.0, Protocol Banks becomes the control plane for agent commerce — an agent can discover services (ERC-8004/A2A), accept a quote, deliver proof, pay through EIP-3009 or x402, spend on an agent-scoped card, trade through a trading-only wallet, and leave an auditable receipt. The mandate — not the model, not the facilitator — decides what is allowed.
2. The “x402” Protocol
Gasless Enterprise Settlements
Protocol Banks leverages the x402 Protocol (based on ERC-3009) to separate payment authorization from execution.
- Enables “CFO Approval” workflows where the approver doesn't need ETH/Gas.
- Allows AI Agents to propose payments securely via EIP-712 signatures.
- Facilitates recurring billing and subscriptions on-chain.
- Enables machine-to-machine micropayments via HTTP 402 status codes.
3. Agent Commerce
Payments alone do not make a market. The commerce layer adds the order: a seller publishes a service, the buyer accepts a signed quote, the seller records delivery proof, and the buyer pays with the order id.
seller POST /commerce/services
seller POST /commerce/quotes { serviceId, buyer, scope, deliveryDue, terms }
buyer POST /commerce/quotes/accept { quoteId } -> order
seller POST /commerce/orders/deliver { orderId, deliveryHash, deliveryUri }
buyer POST /agent/pay { to: seller, amountUsd, orderId, authorization }
buyer POST /commerce/orders/complete { orderId }The order carries a canonical termsHash over seller, buyer, amount, token, chain, scope and delivery due date. The payment intent echoes the orderId and termsHash, so a receipt can be checked against the order instead of a free-form memo. Payment is direct today; escrow and conditional release are the next rail.
4. Market Analysis
Modern Web3 finance teams face a “fragmentation trilemma” that hinders adoption:
Chain Silos
Assets split across EVM, Solana, TRON, and Bitcoin layers.
Data Blindness
Explorers show hashes, not “Payroll” or “Vendor” context.
Agent Gap
AI Agents lack standardized ways to discover, authenticate with, and call payment services.
5. Product Architecture
Protocol Banks is a control plane, not a bank. Payments move from the payer's wallet or the provider's card balance; the platform orchestrates the mandate, the wallet, the order and the audit.
- Agent Mandate: one credential, server-enforced operations, per-call cap, daily cap, allowlist, revoke and audit.
- Agent Commerce: services, quotes, orders, delivery proof, payment binding, disputes, refunds and reputation.
- Trading Agent Wallet: a Hyperliquid wallet approved with EIP-712
approveAgent; it can trade, never withdraw. - Agent Cards: one virtual card per agent, issued through Yativo or Rain; the issuer holds the card balance.
- Multi-Chain Rails: 9 blockchains (Ethereum, Polygon, Arbitrum, Base, Optimism, BNB Chain, Solana, Bitcoin, TRON) with unified address detection and network-specific optimization.
6. AI-Native Architecture
Protocol Banks v2.0 is designed from the ground up as AI-native payment infrastructure. Any AI agent — whether a Claude MCP client, an autonomous trading bot, or a DAO treasury manager — can interact with our payment services through open, standardized protocols.
ERC-8004 Agent Card
Decentralized identity for AI agents. DID-based discovery via /.well-known/agent.json. EIP-191 signed cards prove agent authenticity on-chain.
SIWE + JWT Authentication
AI agents authenticate using Sign-In with Ethereum (EIP-4361). Private key signs a challenge, receives a 1-hour JWT access token and 30-day refresh token. No browser required.
A2A Protocol
Agent-to-Agent communication via JSON-RPC 2.0. Every message carries an EIP-191 signature with nonce-based replay protection and a 5-minute timestamp window.
MCP Server
Model Context Protocol server exposes 8 payment tools. Claude, GPT, and other AI models call tools directly via Streamable HTTP or stdio transport.
7. AI Agent Authentication
Protocol Banks implements a three-step SIWE (Sign-In with Ethereum) authentication flow that allows AI agents to log in autonomously using only their private key:
Request Nonce
GET /api/auth/siwe/nonce — Server generates a single-use challenge nonce (5-min expiry). The nonce can only be used once to prevent replay attacks.
Sign & Verify
POST /api/auth/siwe/verify — Agent constructs an EIP-4361 message, signs it with their private key, and submits both. Server verifies the signature, consumes the nonce, and returns a JWT access token (1h) plus a refresh token (30d).
Auto-Refresh
POST /api/auth/siwe/refresh — Before the access token expires, the agent submits the refresh token to get a new JWT. Sessions persist up to 30 days without re-authentication.
8. Agent-to-Agent Communication
The A2A Protocol enables standardized, cryptographically secured communication between AI agents. External agents can request payments, get quotes, and track transactions — all through signed JSON-RPC 2.0 messages.
A2A Message Flow
- Discovery: Resolve agent DID via
/.well-known/agent.jsonor/api/agents/cards/resolve - Handshake: Exchange capabilities and supported protocols
- Request Payment: Agent sends a signed payment request with amount, token, and recipient
- Get Quote: Server returns a fee estimate and execution plan
- Confirm & Track: Submit on-chain transaction and track status via task ID
Security guarantees: Every A2A message is verified with EIP-191 signature recovery. Nonces are stored in the database with a unique constraint to prevent replay. Messages older than 5 minutes are rejected. All interactions are logged to the audit trail.
9. MCP Server Integration
The Model Context Protocol (MCP) server allows any compatible AI model — Claude, GPT, or custom agents — to directly invoke payment tools as native function calls. This eliminates the need for wrapper code or API clients.
| Tool | Auth | Description |
|---|---|---|
list_supported_tokens | None | Query supported tokens and networks |
get_payment_quote | None | Fee estimates for any payment |
create_payment | JWT | Create a payment proposal |
check_payment_status | JWT | Check payment status by ID |
list_payments | JWT | List recent payments |
create_invoice | JWT | Generate invoice with payment link |
list_invoices | JWT | List invoices |
get_balance | JWT | Query wallet balances per network |
Two transport modes: Streamable HTTP (POST /api/mcp) for web-based clients and stdio (pnpm mcp:stdio) for Claude Desktop and CLI integrations. Public tools (token list, quotes) require no authentication; all payment operations require a valid JWT.
Ready to build AI-native payments?
Protocol Banks is open-source and ready for integration. Start with the AI Wallet SDK, connect your agent via MCP, or explore the A2A protocol for autonomous agent collaboration.

