Overview
Before using Arcana x402, you’ll need a few tools and accounts set up. This guide covers both user prerequisites (for making queries) and developer prerequisites (for running the platform locally).Just want to use the platform? Skip to the User Prerequisites section.
User Prerequisites
To interact with Arcana x402 as an end user, you need:1. Web3 Wallet
MetaMask (Recommended)
MetaMask is the most widely supported wallet for web3 applications.Installation:
- Chrome Extension
- Firefox Add-on
- Brave Browser (use Chrome store)
- Mobile App (iOS/Android)
- WalletConnect-compatible wallets
- Coinbase Wallet
- Rainbow Wallet
2. Base Sepolia Testnet Access
The platform runs on Base Sepolia testnet, a test version of Base L2. Network Configuration:3. Test ETH (Gas Fees)
You need Base Sepolia ETH for transaction gas fees. Recommended Amount: 0.05-0.1 ETH (enough for ~50-100 queries) Faucets:Base Sepolia Faucet
Official Coinbase faucet - requires Coinbase account
Alchemy Faucet
Multi-chain faucet supporting Base Sepolia
- Visit a faucet URL above
- Enter your wallet address
- Complete verification (captcha, social login, etc.)
- Wait 1-5 minutes for ETH to arrive
- Verify balance in MetaMask (switch to Base Sepolia network)
4. Test USDC (Query Payments)
Each query costs $0.03 USDC on Base Sepolia. USDC Contract Address:Option 1: Circle Faucet
Visit Circle’s Testnet Faucet
- Select “Base Sepolia”
- Enter your address
- Receive 10-100 test USDC
Option 2: Uniswap Testnet Swap
Use Uniswap to swap test ETH for test USDC:
- Connect wallet to Base Sepolia
- Swap 0.01 ETH → USDC
- Confirm transaction
Option 3: Bridge from another testnet
If you have testnet USDC on Sepolia or another network:
- Use Base Bridge (testnet mode)
- Bridge USDC from Sepolia to Base Sepolia
- Open MetaMask and ensure you’re on Base Sepolia
- Click Assets tab → Import tokens
- Paste contract address:
0x036CbD53842c5426634e7929541eC2318f3dCF7e - Token symbol should auto-fill as “USDC”
- Click Add Custom Token
Recommended balance: At least 1 USDC (enough for ~33 queries)
5. Modern Web Browser
Supported browsers:- Chrome/Chromium (v90+)
- Firefox (v88+)
- Brave (v1.20+)
- Edge (v90+)
- Safari (limited Web3 wallet support)
- Internet Explorer
- Opera (partial support)
Developer Prerequisites
To run Arcana x402 locally or deploy your own instance:1. Development Environment
- Node.js: Download from nodejs.org (use LTS version)
- npm: Comes with Node.js
- Git: Download from git-scm.com
2. API Keys and Services
The backend requires several API keys:Required Services
Gemini API
Purpose: AI orchestration and agent routingGet an API key:
- Visit Google AI Studio
- Create a new API key
- Add to backend
.envasGEMINI_API_KEY
Supabase
Purpose: Database for chat history, receipts, and analyticsSetup:
- Create account at supabase.com
- Create a new project
- Copy Project URL and anon key from Settings → API
- Add to backend
.env:SUPABASE_URLSUPABASE_ANON_KEY
Coinbase Developer Platform (CDP)
Purpose: Wallet provisioning and x402 payment signingGet credentials:
- Visit Coinbase Cloud
- Create API credentials
- Download API key JSON
- Add to backend
.env:CDP_API_KEY_IDCDP_API_KEY_SECRET
Optional Services
CoinGecko API (Price Oracle)
CoinGecko API (Price Oracle)
Free tier available: coingecko.com/en/apiAdd to backend Without this, Price Oracle agent will use public API with rate limits.
.env:Alchemy API (Chain Scout)
Alchemy API (Chain Scout)
Etherscan API (Chain Analytics)
Etherscan API (Chain Analytics)
OpenSea API (NFT Scout)
OpenSea API (NFT Scout)
3. Private Keys and Wallets
You’ll need private keys for several roles: Backend Orchestrator Wallet:4. Foundry (Optional)
If you want to deploy or modify smart contracts:forge: Compile and test Solidity contractscast: Interact with contracts from CLIanvil: Run local Ethereum node
Verification Checklist
Before proceeding to the Quickstart, verify you have: For Users:- MetaMask or compatible wallet installed
- Base Sepolia network added to wallet
- At least 0.05 Base Sepolia ETH
- At least 0.5 Base Sepolia USDC
- USDC token imported in wallet (shows balance)
- Node.js 18+ installed
- Git installed
- Gemini API key obtained
- Supabase project created (URL + anon key)
- CDP API credentials obtained
- Backend private key generated (testnet only)
- Pinion private key generated (testnet only)
- Optional API keys for external services
All set? Continue to the Quickstart Guide to make your first query!
Troubleshooting
Can't find Base Sepolia in network list
Can't find Base Sepolia in network list
Base Sepolia is not included by default in MetaMask. You must add it manually:
- Click network dropdown → Add Network
- Click Add a network manually
- Enter the network details from the Base Sepolia section
- Click Save
Faucet says 'Already claimed today'
Faucet says 'Already claimed today'
Most faucets limit claims to once per 24 hours per address. Solutions:
- Wait 24 hours and try again
- Try a different faucet from the list
- Use a different wallet address
- Ask in Base Discord for testnet tokens
USDC not showing in wallet
USDC not showing in wallet
You need to manually import the token:
- Make sure you’re on Base Sepolia network
- Go to Assets → Import tokens
- Paste USDC address:
0x036CbD53842c5426634e7929541eC2318f3dCF7e - Verify chain ID is 84532
Node version conflicts
Node version conflicts
If you have multiple Node versions or get version errors:Use nvm (Node Version Manager):
Supabase connection fails
Supabase connection fails
Common issues:
- Wrong URL format (should be
https://xxx.supabase.co) - Wrong key type (use anon key, not service role key)
- Project paused (Supabase pauses after 7 days inactivity on free tier)
- RLS policies blocking access (run SQL setup scripts in order)
Need Help?
If you’re stuck on prerequisites:- Users: Join the Base Discord for testnet token help
- Developers: Check GitHub Issues or the troubleshooting sections in the setup guides
- Both: Read the full README.md for detailed setup instructions