How amand4ngol/pyusd-hub works
PYUSD Hub is a Flutter non-custodial ETH/PYUSD wallet combined with blockchain analytics. The documented user journey is to enter the app, manage or inspect a wallet, then use transaction, network, and tracing tools; AI analysis and PYUSD City are complementary features. The tree identifies distinct UI, provider, and service layers. The README documents GCP RPC, Gemini, and Etherscan integrations, but sampled source does not show their exact call wiring, so uncertain links are omitted.
Main entry points: main.dart Flutter app · gemini_service.dart Gemini analysis · gcp_rpc_service.dart GCP RPC access · rpc_call_service.dart RPC calls
Components 25
App shell
- Flutter app
lib/main.dart - Navigation
lib/routes/app_routes.dart - Network state
lib/providers/network_provider.dart
Wallet and transfers
- Wallet onboarding
lib/screens/authentication/provider/auth_provider.dart - Wallet service
lib/screens/authentication/services/wallet_service.dart - Wallet overview
lib/screens/wallet/view/wallet_screen.dart - Wallet data
lib/screens/wallet/provider/walletscreen_provider.dart - Send and receive
lib/screens/transactions/provider/transaction_provider.dart - Transaction screens
lib/screens/transactions/view/send_transaction/send_screen.dart - Transaction details
lib/screens/transactions/view/transaction_details/transaction_detail_screen.dart
Blockchain analytics
- GCP RPC access
lib/services/gcp_rpc_service.dart - RPC calls
lib/services/rpc_call_service.dart - Network service
lib/services/network_service.dart - Congestion analytics
lib/screens/networkcongestion/provider/network_congestion_provider.dart - Transaction tracing
lib/screens/trace/provider/trace_provider.dart - MEV analysis
lib/screens/trace/provider/mev_analysis_provider.dart
AI and discovery
- Market insights
lib/screens/insights/provider/insights_provider.dart - Market service
lib/services/market_service.dart - Gemini analysis
lib/screens/geminiai/service/gemini_service.dart - News discovery
lib/screens/news/service/news_service.dart
Supporting experiences
- PYUSD City
lib/screens/pyusdcity/view/pyusd_city_screen.dart - Notifications
lib/services/notification_service.dart
Other components
- Wallet user
- Google Gemini
- GCP blockchain RPC
Connections 16
- Wallet user → Flutter app: opens
- Flutter app → Navigation: routes through
- Wallet user → Wallet onboarding: creates or imports
- Wallet user → Wallet overview: views wallet
- Wallet user → Transaction screens: sends or receives
- Wallet user → Transaction details: inspects transfer
- Wallet user → Congestion analytics: views network
- Wallet user → Transaction tracing: traces activity
- Wallet user → MEV analysis: checks MEV
- Wallet user → Market insights: explores insights
- Wallet user → Gemini analysis: requests analysis
- Wallet user → News discovery: browses news
- Wallet user → PYUSD City: opens visualization
- Gemini analysis → Google Gemini: analyzes with
- GCP RPC access → GCP blockchain RPC: calls RPC
- RPC calls → GCP blockchain RPC: calls RPC