Impact Chain is a state-of-the-art Bitcoin-native ROSCA (Rotating Savings and Credit Association) platform designed to empower communities through transparent, trustless, and automated financial governance. Built for the modern age, it replaces manual tracking and verbal trust with cryptographically secure smart-governance and Lightning Network payments.
- Discovery Engine: Browse active Chamas or launch your own community circle in seconds.
- 51% Consensus Model: Strict democratic governance. Membership, loans, and withdrawals require a majority vote to execute.
- Strict Access Control: Dashboards are locked behind a membership wall. Only approved members can view balance, rotation orders, or transaction history.
- Sats + KSH Display: Dynamic currency bridging. View your savings in Bitcoin (Sats) and Kenyan Shillings (KSH) using real-time exchange rates.
- Automated Payouts: The system automatically triggers rotation payouts to your saved Lightning address the moment the pool target is reached.
- Wallet of Satoshi Integration: Seamlessly contribute via Lightning QR codes or deep-linking.
- Unique Login References: Every session generates a persistent IC-XXXX-XXXX tracking number for auditability.
- Proof-of-Payment: Immutable digital receipts via Lightning payment hashes.
- Rotation Order: Transparent join-date-based rotation ensures everyone knows exactly when their "payday" is coming.
- Frontend: React (TypeScript), Chakra UI (Glassmorphism design), Framer Motion.
- Backend: FastAPI (Python), SQLAlchemy (Async), Pydantic.
- Database: PostgreSQL with strict relational constraints and indexing.
- Payments: Lightning Network (LNbits / OpenNode compatible).
- Automation: Async polling and state-machine transitions for governance approval.
- Docker & Docker Compose
- Node.js (v18+)
- Python (3.9+)
Create a .env file in the backend/ directory:
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/impactchain
SECRET_KEY=your_super_secret_key
LNBITS_API_KEY=your_lnbits_key
LNBITS_URL=https://legend.lnbits.comcd backend
pip install -r requirements.txt
python run_server.pycd client
npm install
npm run dev- Build the Docker image:
docker build -t gcr.io/impact-chain/backend . - Push and deploy to Google Cloud Run with appropriate env variables.
- Connect GitHub repository.
- Set build command:
npm run build. - Set output directory:
dist.
To initialize the governance and request system:
- Run the
add_requests_tables.sqllocated inbackend/sql/. - Ensure
chama_membershipstable has thestatuscolumn for access control.
Impact Chain is open-source. Join us in building the future of decentralized community finance!
Developed with love by Floyce.