Overview
GweAI uses Wagmi for Ethereum wallet connections and blockchain interactions. The configuration includes automatic RPC fallback, multiple wallet connectors, and retry logic for reliable connectivity.Configuration
The Wagmi configuration is exported fromwagmi.config.ts:
wagmi.config.ts
Supported Chains
Currently configured for Base Sepolia testnet (Chain ID: 84532)
Wallet Connectors
Injected Connector
Supports browser extension wallets:- MetaMask
- Brave Wallet
- Rabby Wallet
- Any EIP-1193 compatible wallet
Coinbase Wallet
Configured for Coinbase Smart Wallet (embedded wallet experience):Application name displayed in Coinbase Wallet (set to
"GweAI")Wallet type preference. Set to
smartWalletOnly for embedded wallet experienceWalletConnect
Enables connection to 300+ mobile and desktop wallets:WalletConnect Cloud project ID for relay service
Application name displayed in WalletConnect modal
Application description shown to users
Application website URL
Array of icon URLs for branding
Display QR code modal for mobile wallet connections
Transport Configuration
Fallback Transport
The configuration uses Wagmi’sfallback transport for automatic RPC failover:
Request timeout in milliseconds (10 seconds)
Number of retry attempts before moving to next RPC
Delay between retry attempts in milliseconds
RPC Endpoints
The transport uses multiple RPC providers in priority order:Alchemy (Primary)
https://base-sepolia.g.alchemy.com/v2/-mGklZw8tTiO9fg9sRGQPBest rate limits and reliabilityBlockPI (Secondary)
https://base-sepolia.blockpi.network/v1/rpc/publicPublic endpoint with 10M requests/dayBase Sepolia’s official RPC (
https://sepolia.base.org) was removed due to aggressive rate limiting causing 403 errors. The fallback strategy provides 99.9% uptime.Usage Examples
Initialize Wagmi Config
Type Definitions
Related Resources
RPC Providers
Learn about RPC fallback strategy and caching
Contract Addresses
Verified contract addresses on Base Sepolia