Documentation Index
Fetch the complete documentation index at: https://docs.mrdn.finance/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Meridian extends x402 with a proxy facilitator architecture that builds on top of Coinbase’s infrastructure. Unlike traditional direct wallet transfers, Meridian routes settlement through the facilitator and adds organization-scoped access control for verification and settlement. Across supported chains, the facilitator is the main Meridian payment entrypoint. On MegaETH, the recommended Meridian flow is now Permit2 via facilitator V4_2. The older USDm forwarder remains available only for backward compatibility with legacy EIP-3009 clients and is deprecated for new integrations.Traditional x402 vs Meridian’s Innovation
Standard x402 (Coinbase Model)
Meridian’s Proxy Facilitator Model
Key Components
Smart Contract: X402ProxyFacilitator.sol
- Proxy Architecture: Payments flow through the facilitator contract rather than directly to the recipient
- Settlement Layer: Same-chain payments are settled by the facilitator during payment processing
- Fee Handling: Platform and treasury fees are handled inside the facilitator
- Organization Integration: Payments can be linked to organizations for verification, settlement, and access control
- Cross-Chain Support: The same entrypoint can be used for cross-chain settlement on supported networks
Smart Contract: x402ExactPermit2Proxy.sol (Recommended on MegaETH)
Current MegaETH integrations should use Permit2 settlement through the Meridian facilitator V4_2:- Current path: Users approve Permit2 once, then sign a Permit2 witness authorization off-chain
- Token model:
paymentRequirements.assetis the ERC-20 token address being paid - Facilitator binding:
payTo,witness.to, andwitness.facilitatorstay bound to the Meridian facilitator - Settlement: Meridian settles through
transferWithPermit2, not through the buyer submitting a transaction
Smart Contract: EIP3009Forwarder.sol (MegaETH legacy compatibility)
This forwarder adds EIP-3009 compatibility to USDm on MegaETH while keeping Meridian’s normal facilitator flow intact. It is based on the open source implementation here.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 and settlements
- Multi-User Access: Teams can manage payments collectively through organization structure
How x402 Works
- Authorization Signing: Payer signs a payment authorization with amount, recipient context, and network details.
- Verification: Server verifies signature and authorization parameters.
- Transfer Execution: Meridian executes settlement through the facilitator. On MegaETH, the recommended path uses Permit2 through
x402ExactPermit2Proxy; the USDm forwarder remains legacy compatibility only. - Fee Application: Recipient and fee amounts are handled during settlement processing.
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. Settlement Model
Earlier Meridian docs emphasized recipient withdrawal flows. In the current facilitator flow, same-chain payments settle to the recipient during payment execution, while fee balances remain managed inside the facilitator.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
- Shared Settlement Path: A consistent facilitator model across supported chains
- Standard x402 Compatibility: Works with the normal HTTP 402 payment challenge flow
- Clear Role Separation: Buyer agents sign payments, seller backends verify and settle them
- Organization Security: API key management prevents unauthorized settlement access
- Framework Agnostic: Works with any AI agent framework