tempo-x402-demo
February 5, 2026 ยท View on GitHub
Interactive demo of the tempo-x402 payment protocol.
Demonstrates the HTTP 402 Payment Required flow on the Tempo blockchain:
- Request a protected endpoint
- Receive 402 response with payment requirements
- Sign an EIP-712 payment authorization
- Retry with
PAYMENT-SIGNATUREheader - Receive the paid response + settlement transaction
Quick start
npm install
npm run dev
How it works
- Demo Key mode (default): Uses a pre-funded testnet wallet. No setup required.
- Browser Wallet mode: Connect MetaMask or any EIP-1193 wallet. Must have pathUSD on Tempo Moderato and have approved the facilitator.
Stack
- Next.js 16
- viem for EIP-712 signing
- Tailwind CSS
- Points at deployed Railway services
Links
Chain
- Network: Tempo Moderato (testnet)
- Chain ID: 42431
- Token: pathUSD (6 decimals)
- RPC: https://rpc.moderato.tempo.xyz