CredBlock is a revolutionary decentralized credit scoring platform that brings transparency, accessibility, and fairness to Web3 financial ecosystems. Instead of relying on opaque, centralized credit bureaus, CredBlock leverages on-chain activity, multi-chain wallet analytics, and machine learning models to generate dynamic creditworthiness profiles.
- π Multi-Chain Support: SEI, Ethereum, and Solana integration
- π€ AI-Powered Scoring: ML models for accurate credit assessment
- π Real-Time Analytics: Live blockchain data analysis
- β‘ Fast API: Sub-second response times with Redis caching
- π‘οΈ Privacy-First: No personal data collection, only public blockchain data
- π¨ Modern UI: Beautiful, responsive interface with CredBlock branding
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Frontend β β Backend API β β Blockchain β
β (React/Vite) βββββΊβ (FastAPI) βββββΊβ Networks β
β β β β β (SEI/ETH/SOL) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
β βΌ β
β βββββββββββββββββββ β
β β Redis Cache β β
β β PostgreSQL β β
β βββββββββββββββββββ β
β β
βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ
β ML Models β β External APIs β
β (AWS S3) β β (Etherscan, β
β β β Solana RPC) β
βββββββββββββββββββ βββββββββββββββββββ
- Framework: FastAPI (Python 3.11+)
- Database: PostgreSQL + Redis
- Blockchain: Web3.py, Solana SDK
- ML: scikit-learn, joblib
- Infrastructure: Docker, AWS S3
- Framework: React 18 + TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS + shadcn/ui
- State: TanStack Query
- Routing: React Router
- SEI: Native precompiles for staking & governance
- Ethereum: Web3.py + Etherscan API
- Solana: Solana SDK + RPC endpoints
- Python 3.11+
- Node.js 16+
- Docker Desktop (running)
git clone https://github.com/eshaanmathakari/credBlock.git
cd credblock# Start everything (recommended)
./start-local.shThis will:
- Start Redis and PostgreSQL containers
- Set up Python virtual environment
- Install dependencies
- Start backend on port 8001
- Start frontend on port 8080
- Frontend: http://localhost:8080
- Backend API: http://localhost:8001
- API Documentation: http://localhost:8001/docs
- Open http://localhost:8080
- Enter a wallet address (SEI, Ethereum, or Solana)
- Select the blockchain network
- Click "Get Credit Score"
- View detailed score breakdown and factors
{
"wallet": "walletaddresshere",
"chain": "sei",
"score": 750,
"risk": "Low Risk",
"confidence": 0.85,
"factors": {
"Account Age": 25,
"Tx Activity": 30,
"Balances": 20,
"DeFi Extras": 15,
"Staking": 10,
"Governance": 5
},
"latency_ms": 120,
"model_version": "v1.0.0"
}Backend only:
./start-backend.shFrontend only:
./start-frontend.shDocker Compose:
./start-docker.sh# Copy environment template
cp env.template .env
# Edit configuration
nano .envKey environment variables:
VITE_API_BASE_URL: Frontend API endpointREDIS_URL: Redis connection stringSEI_RPC_URL: SEI network RPC endpointETHEREUM_RPC: Ethereum RPC endpointSOLANA_RPC_URL: Solana RPC endpoint
credblock/
βββ backend/ # FastAPI backend
β βββ services/ # Blockchain services
β βββ chains/ # Chain-specific implementations
β βββ ml/ # Machine learning models
β βββ abis/ # Smart contract ABIs
βββ frontend/ # React frontend
β βββ src/
β β βββ components/ # React components
β β βββ pages/ # Page components
β β βββ hooks/ # Custom hooks
β βββ public/ # Static assets
βββ images/ # Project assets
βββ chrome-extension/ # Browser extension
βββ scripts/ # Utility scripts
curl http://localhost:8001/health# SEI test wallet
curl "http://localhost:8001/v1/score/"
# Ethereum test wallet
curl "http://localhost:8001/v1/score/"cd frontend
npm test# Build and start all services
docker-compose up --build
# Production deployment
docker-compose -f docker-compose.ec2.yml up -d# Deploy to AWS EC2
./deploy-aws.sh- 850-1000: Excellent (A+)
- 700-849: Good (A)
- 500-699: Fair (B)
- 300-499: Poor (C)
- 0-299: Very Poor (D)
- Low Risk: Score 700+
- Medium Risk: Score 500-699
- High Risk: Score <500
- No Personal Data: Only analyzes public blockchain data
- No Wallet Connection: Uses public addresses only
- Encrypted Storage: All cached data is encrypted
- Rate Limiting: API rate limits prevent abuse
- CORS Protection: Configured for secure cross-origin requests
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- SEI Foundation for hosting the hackathon that inspired this project
- SEI Network for providing excellent developer tools and documentation
- Open Source Community for the amazing tools and libraries we use
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Chrome Extension: React Native Chrome extension for everyone to use
- Advanced Analytics: Historical trend analysis across 20+ Blockchains
- Institutional Grade API Tools: Enterprise-grade API Features for meeting every need
