Prerequisites
What you need depends on your use case.
For Free Tier (Testing)
Nothing! Just make HTTP requests.
curl https://api.web3identity.com/api/ens/resolve/vitalik.eth
For Paid Requests (Production)
| Requirement | Description |
|---|---|
| Wallet | Any Ethereum wallet with private key access |
| USDC on Base | For x402 payments (keep ~$1-5) |
| Node.js 18+ | For SDK usage |
Getting USDC on Base
Option 1: Bridge from Ethereum
- Go to bridge.base.org
- Connect your wallet
- Bridge USDC from Ethereum to Base
Option 2: Buy on Base
- Use Coinbase with Base withdrawal
- Or swap on Uniswap (Base)
Creating a Wallet (if needed)
# Using viem
npm install viem
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
const privateKey = generatePrivateKey();
const account = privateKeyToAccount(privateKey);
console.log('Address:', account.address);
console.log('Private Key:', privateKey); // Save securely!
Security
Never commit private keys to version control. Use environment variables or a secrets manager.
For SIWE Authentication
- Wallet that can sign messages
- That's it — no USDC needed for auth
Environment Setup
Recommended environment variables:
# .env
WALLET_KEY=0x...your_private_key...
Load in Node.js:
import 'dotenv/config';
const privateKey = process.env.WALLET_KEY;
Next Steps
- Installation — Install the SDK
- First Request — Make authenticated requests