A decentralized application (DApp) for viewing and managing cryptocurrency portfolios. Connect your wallet to see all your tokens (native and ERC-20) across multiple EVM networks.
- 🔗 Connect multiple wallets (MetaMask, WalletConnect, Coinbase Wallet)
- 💰 View all tokens (native + ERC-20) in your wallet
- 📊 Real-time price updates via CoinGecko API
- 🔍 Automated token discovery via Blockchain Explorer APIs
- 🌐 Multi-chain support (Ethereum, Base, Polygon, Arbitrum, Optimism)
npm installCreate a .env file in the root directory with the following variables:
# Reown/WalletConnect Project ID (required)
REOWN_PROJECT_ID=your_project_id_here
# Blockchain Explorer API Keys (optional but recommended)
# Get free API keys from:
# - Etherscan: https://etherscan.io/apis
# - Basescan: https://basescan.org/apis
# - Polygonscan: https://polygonscan.com/apis
# - Arbiscan: https://arbiscan.io/apis
# - Optimistic Etherscan: https://optimistic.etherscan.io/apis
ETHERSCAN_API_KEY=your_etherscan_api_key_here
BASESCAN_API_KEY=your_basescan_api_key_here
POLYGONSCAN_API_KEY=your_polygonscan_api_key_here
ARBISCAN_API_KEY=your_arbiscan_api_key_here
OPTIMISTIC_ETHERSCAN_API_KEY=your_optimistic_etherscan_api_key_hereNote: The Explorer API keys are optional. Without them, the app will still work but may have rate limits. With API keys, you get:
- Higher rate limits
- More reliable token discovery
- Better performance
npm run devThe app uses Blockchain Explorer APIs to automatically discover all tokens in your wallet:
- Explorer API: Queries the blockchain explorer (Etherscan, Basescan, etc.) to find all token transfers associated with your wallet address
- Token Information: Fetches token metadata (name, symbol, decimals) directly from the blockchain
- Balance Check: Verifies current token balances
- Price Fetching: Gets real-time prices from CoinGecko API
This approach is more automated than maintaining a hardcoded list of tokens and will discover any token your wallet has interacted with.
- React + TypeScript + Vite
- wagmi + viem for Web3 interactions
- Reown AppKit for wallet connections
- TanStack Query for data fetching and caching
- Tailwind CSS for styling
This project is configured for deployment on Cloudflare Pages.
For detailed deployment instructions, see:
- DEPLOY.md - Complete deployment guide
- CLOUDFLARE_SETUP.md - Setup checklist
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])