Overview
This quickstart guide will get you up and running with Meridian’s x402 payment system and receiver wallet features.Prerequisites
- Node.js 20+
- PNPM 9+
- Ethereum wallet (MetaMask recommended)
- Base Sepolia testnet ETH and USDC
Installation
1
Clone the repository
2
Install dependencies
bash pnpm install
3
Set up environment variables
Create Facilitator (.env.local):
.env.local
files in the apps you want to run:Frontend (.env.local):4
Start development servers
Make your first payment
1
Connect your wallet
Navigate to the demo app at
http://localhost:3000
and connect your Ethereum wallet.2
Sign in with Ethereum
Use SIWE (Sign-In with Ethereum) to authenticate your session.
3
Make a payment
Use the payment interface to make your first x402 payment:
Key Concepts
x402 Protocol
- Authorization-based payments: No token approvals needed
- Fee structure: 1% fee to treasury, remainder to recipient
- Multi-network support: Base, Arbitrum, Optimism, and testnets
Enhanced Security
- 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
Authentication
- SIWE integration: Sign-In with Ethereum for secure sessions
- Session management: Persistent sessions across page reloads
- API key support: For server-to-server integrations