Canza Autonomous Payment Protocol β AI-powered payment system for African cross-border commerce
# CAPP - Canza Autonomous Payment Protocol
A revolutionary AI-powered payment system for African cross-border commerce, featuring autonomous agents that optimize payment routes, reduce costs, and accelerate settlements in real-time.
## π Quick Start
### Option 1: One-Command Startup
```bash
./start-capp.sh
```
### Option 2: Manual Setup
```bash
# Backend
source venv/bin/activate
python -m uvicorn apps.api.app.main:app --reload --port 8000
# Frontend (Web App) - in another terminal
cd apps/web
npm run dev
# Wallet App - in another terminal (optional)
cd apps/wallet
npm run dev
```
## π Demo Results
Our Nigeria β Kenya payment demonstration shows:
- **91% Cost Reduction**: From 8.9% to 0.8% processing fees
- **1.5 Second Settlement**: Down from 3 days traditional processing
- **172,291x Speed Improvement**: Real-time optimization vs manual processes
- **$8.10 Saved**: On a $1,000 transaction
## ποΈ Architecture
### Backend (FastAPI + Python)
- **Agent-Based Architecture**: Autonomous agents coordinate payment flows and cross-chain operations.
- **Intelligent Routing Engine**: Optimizes payment paths based on real-time gas/fees from Aptos, Polygon, and Starknet.
- **Event-Driven**: Apache Kafka for reliable cross-border messaging (mocked/simulated in dev).
- **Blockchain Integration**: Real-time integration with Aptos, Polygon, and Starknet.
- **Yield Service**: Smart Sweep functionality for idle assets.
### Frontend (Next.js + TypeScript)
- **Modern Web Architecture**: Built with Next.js 15+ for server-side rendering and performance.
- **Dual Applications**:
- **Web App (`apps/web`)**: Main platform interface, dashboard, and payment demo.
- **Wallet App (`apps/wallet`)**: Personal crypto wallet interface.
- **Styling**: Tailwind CSS for utility-first design.
- **Interactive Visuals**: Framer Motion for animations.
## π― Core Features
### Autonomous Payment Agents
1. **Route Optimization Agent**: Finds optimal payment corridors across supported chains.
2. * β¦