Implemented HTTP 402 payment protocol with Thirdweb on Avalanche Fuji
x402-starter-kit is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 6 GitHub stars and 5 forks.
HTTP 402 payment integration with Thirdweb on Avalanche Fuji testnet.
git clone https://github.com/federiconardelli7/x402-starter-kit.git
cd x402-starter-kit
npm install
IMPORTANT: The THIRDWEB_SERVER_WALLET_ADDRESS is the facilitator address used for transaction processing.
You MUST use an ERC4337 Smart Account:
THIRDWEB_SERVER_WALLET_ADDRESSIMPORTANT: Do NOT use ERC-7702 accounts. Only ERC4337 Smart Accounts are supported as facilitators for some networks.
Copy .env.example to .env.local:
cp .env.example .env.local
Fill in the required values:
NEXT_PUBLIC_THIRDWEB_CLIENT_ID - Your Thirdweb client ID THIRDWEB_SECRET_KEY - Your Thirdweb secret key THIRDWEB_SERVER_WALLET_ADDRESS - Facilitator address (ERC4337 Smart Account address)MERCHANT_WALLET_ADDRESS - Payment recipient wallet addressOPENROUTER_API_KEY - Your OpenRouter API key for AI chat (Get one here)npm run dev
npm run build
npm start
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.