docs/getting-started/blockrun-base-wallet.md
This guide explains how to use a Base network EVM wallet to pay for AI usage through BlockRun — no API key required.
BlockRun is a decentralized AI inference gateway that lets you access top AI models (Claude, GPT, Gemini, Grok, DeepSeek, etc.) by paying per request with USDC — no monthly subscriptions, no API key signups.
NOFX integrates BlockRun via the x402 micropayment protocol: each AI inference request automatically pays a small USDC fee directly from your wallet. You only pay for what you use.
| Feature | Traditional API Key | BlockRun Wallet |
|---|---|---|
| Setup | Register + billing | Just a wallet address |
| Cost model | Monthly subscription | Pay-per-request |
| Models | One provider | All top models |
| Privacy | Account required | Pseudonymous |
| Control | Rate limits apply | Your wallet, your budget |
0x...)Tip: A few dollars of USDC is enough to start — each AI call costs fractions of a cent.
⚠️ Security Warning: Never share your private key with anyone. Use a dedicated trading wallet, not your main holdings wallet.
Option A — Create a new wallet (recommended):
0x)Option B — Use an existing wallet:
Option C — Generate via CLI:
# Using cast (foundry)
cast wallet new
# Output: Address: 0x... | Private key: 0x...
Send USDC to your wallet address on Base network:
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Check your balance at basescan.org.
http://localhost:30000x...)When NOFX sends an AI request:
https://blockrun.ai/api/v1/chat/completions402 Payment Required + payment detailsPrivacy: Your private key never leaves your NOFX instance. Only the cryptographic signature is sent.
| Model ID | Provider | Use Case |
|---|---|---|
gpt-5.4 | OpenAI | Flagship (default) |
claude-opus-4.6 | Anthropic | Flagship |
gemini-3.1-pro | Flagship | |
grok-3 | xAI | Flagship |
deepseek-chat | DeepSeek | Flagship |
minimax-m2.5 | MiniMax | Flagship |
| Issue | Solution |
|---|---|
no private key set | Check your key was saved correctly; re-enter in Config |
payment retry failed | Ensure you have USDC on Base (not Ethereum mainnet) |
invalid private key | Key must be hex format with 0x prefix, 66 chars total |
| Payment deducted but no response | Check BlockRun status at blockrun.ai |
| Slow responses | Try selecting a specific model instead of "Auto" |
Check your USDC balance and transaction history at: