Required Software
Node.js and npm
Node.js and npm
All examples require Node.js 18.17.0 or higher and npm 9.0.0 or higher.Check your versions:Install or update Node.js:
- macOS/Linux: Use nvm
- Windows: Download from nodejs.org
Git
Git
Code Editor
Code Editor
Recommended editors:
- VS Code with TypeScript extensions
- WebStorm or other JetBrains IDEs
- Cursor for AI-assisted development
Crossmint API Key
Some examples (particularly those using Crossmint smart wallets) require a Crossmint API key.Sign up for Crossmint
Visit the Crossmint Console and create an account.
Blockchain Prerequisites
Testnet USDC Tokens
All demos use testnet USDC on either Base Sepolia or Solana Devnet. You’ll need testnet tokens to:- Make payments as a client/agent
- Receive payments as a service provider
- Test settlement verification
Get Base Sepolia USDC
Use the Circle testnet faucet:
- Visit faucet.circle.com
- Select Base Sepolia network
- Enter your wallet address
- Request testnet USDC (you’ll receive ~10 USDC)
Get Solana Devnet USDC (if needed)
For Solana demos, use the Circle faucet:
- Visit faucet.circle.com
- Select Solana Devnet network
- Enter your Solana wallet address
- Request testnet USDC
Verify your balance
For Base Sepolia, check your balance on Basescan Sepolia.For Solana, use Solana Explorer (Devnet).
Wallet Setup
- EVM Wallets (Base)
- Solana Wallets
- Crossmint Smart Wallets
For EVM-based demos, you need a wallet on Base Sepolia:Option 1: MetaMask
- Install MetaMask
- Add Base Sepolia network:
- Network Name:
Base Sepolia - RPC URL:
https://sepolia.base.org - Chain ID:
84532 - Currency Symbol:
ETH - Block Explorer:
https://sepolia.basescan.org
- Network Name:
- Get testnet ETH from Base Sepolia faucet for gas
Understanding Key Terms
Before diving into the demos, familiarize yourself with these concepts:x402 Protocol
x402 Protocol
x402 is an HTTP payment protocol using the
402 Payment Required status code.- Server returns
402with payment requirements when a resource needs payment - Client generates a payment authorization header (
X-PAYMENT) - Server verifies the payment and grants access
A2A (Agent-to-Agent)
A2A (Agent-to-Agent)
A2A is a protocol for AI agents to communicate and transact autonomously.
- Agents discover each other’s capabilities and pricing
- Payments are made programmatically without human intervention
- Enables agent-to-agent marketplaces and service networks
EOA (Externally Owned Account)
EOA (Externally Owned Account)
An EOA is a traditional blockchain wallet controlled by a private key.
- User has full control via private key
- Requires gas tokens (ETH, SOL) for transactions
- Compatible with all standard wallets (MetaMask, Phantom, etc.)
Smart Wallets
Smart Wallets
Smart wallets (also called smart contract wallets) are programmable wallets.
- Can execute complex logic (spending limits, multi-sig, etc.)
- Crossmint smart wallets support gasless transactions
- Enable features like email-based recovery and session keys
MCP (Model Context Protocol)
MCP (Model Context Protocol)
MCP is a standard for integrating tools with AI models.
- Allows AI agents to discover and use external tools
- Payment-gated MCP tools enable autonomous agent economies
- Used in advanced demos like events-concierge
USDC
USDC
USDC (USD Coin) is a stablecoin pegged 1:1 to the US Dollar.
- All demos use USDC for payments (not ETH or SOL)
- Testnet USDC has no real value and is free from faucets
- Production systems use mainnet USDC for real payments
- Base Sepolia:
0x036CbD53842c5426634e7929541eC2318f3dCF7e - Solana Devnet:
4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Development Tools (Optional)
These tools can enhance your development experience:Foundry
EVM development toolkit with
cast for wallet operationsSolana CLI
Command-line tools for Solana development
Thunder Client
VS Code extension for testing HTTP endpoints
Postman
API testing tool with support for custom headers
Verification Checklist
Before starting the demos, ensure you have:Accounts created
- Crossmint account (optional for basic demos)
- Wallet on Base Sepolia or Solana Devnet
Next Steps
Quick Start
Run your first paywall server in 5 minutes
x402 Protocol
Learn how the payment protocol works
HTTP Paywalls
Build payment-protected API endpoints
Agent-to-Agent
Create autonomous payment agents
Need help? Join the Crossmint Discord or check the GitHub discussions.