Overview
Meridian extends x402 with a proxy facilitator architecture that builds on top of Coinbase’s infrastructure. Unlike traditional direct wallet transfers, Meridian introduces receiver wallet management with organization-scoped access control.Traditional x402 vs Meridian’s Innovation
Standard x402 (Coinbase Model)
Meridian’s Proxy Facilitator Model
Key Components
Smart Contract: X402ProxyFacilitator.sol
- Proxy Architecture: All payments flow through the facilitator contract, not directly to recipients
- Receiver Balance Tracking:
mapping(address => uint256) public recipientBalances
- Controlled Withdrawals: Recipients must call
withdraw()
orwithdrawAll()
to access funds - Fee Collection: 1% fee applied at withdrawal time, not on initial transfer
- Organization Integration: Payments linked to organizations for multi-user management
Backend Infrastructure
- Organization Management: Users belong to organizations with shared payment infrastructure
- API Key Authentication: Organization-scoped API keys for payment verification
- Transaction Tracking: Complete audit trail of payments, settlements, and withdrawals
- Multi-User Access: Teams can manage payments collectively through organization structure
How x402 Works
- Authorization Signing: Payer signs a message with payment details (amount, recipient, network).
- Verification: Server verifies signature and authorization parameters.
- Transfer Execution: Uses transferWithAuthorization on the USDC contract via the facilitator.
- Fee Application: 1% fee deducted to treasury; remainder to recipient.
Meridian’s Unique Architecture
1. Proxy Facilitator Contract
2. Organization-Scoped Management
- Multi-User Organizations: Teams share payment infrastructure
- API Key Management: Organization-scoped authentication
- Shared Analytics: Transaction tracking across team members
- Controlled Access: Organization admins manage payment permissions
3. Controlled Withdrawal System
4. Enhanced Security Layer
Building on this proxy architecture, Meridian adds:- Organization Management: Users belong to organizations with shared infrastructure
- API Key Authentication: Secure, organization-scoped access control
- Multi-User Teams: Collaborative payment management without wallet sharing
- Audit Trail: Complete transaction history and analytics
Why This Architecture Matters
For Developers:- Simplified Integration: One API for complex payment flows
- Built-in Analytics: Organization-level transaction tracking
- Team Management: Multi-user access without wallet sharing
- Fee Optimization: Fees on withdrawals, not every transfer
- Autonomous Operations: Agents can receive payments without immediate wallet access
- Batch Processing: Accumulate payments before withdrawal
- Organization Security: API key management prevents unauthorized access
- Framework Agnostic: Works with any AI agent framework