Powering Africa with affordable, pay-as-you-go solar energy on blockchain.
Stellar SolarGrid is a decentralized PAYG solar energy platform built on Soroban, within the Stellar ecosystem. Households and small businesses in underserved regions access solar electricity through flexible micro-payments — no large upfront costs required.
stellar-solar-grid/
├── contracts/ # Soroban smart contracts (Rust)
├── frontend/ # React + TypeScript user/provider dashboards
├── backend/ # Node.js API + IoT smart meter bridge
└── README.md
- Smart Meter Integration — IoT meters with real-time usage monitoring and on/off control
- Flexible Payment Plans — Daily, weekly, or usage-based micro-payments in stablecoins
- Automated Access Control — Smart contracts enable/disable electricity based on payment status
- Energy Usage Tracking — Dashboards for users and providers
- Rust +
wasm32-unknown-unknowntarget - Stellar CLI
- Node.js >= 18
- Freighter Wallet (browser extension)
cd contracts
cargo build --target wasm32-unknown-unknown --release
stellar contract deploy --wasm target/wasm32-unknown-unknown/release/solar_grid.wasm --network testnetcd frontend
npm install
npm run devcd backend
npm install
npm run devThe SolarGrid contract manages:
| Function | Description |
|---|---|
register_meter(meter_id, owner) |
Register a new smart meter |
make_payment(meter_id, amount, plan) |
Pay for energy access |
check_access(meter_id) |
Check if meter is currently active |
get_usage(meter_id) |
Retrieve usage data |
update_usage(meter_id, units) |
Called by IoT oracle to update consumption |
Deployed on Stellar Testnet. Switch to Mainnet for production.
MIT