Inspiration
The energy crisis is real and growing. By 2030, the world will face a 200 GW supply-demand gap as renewable energy adoption accelerates faster than grid infrastructure can adapt. Traditional solutions—building new power plants—cost billions and take years to deploy.
But what if millions of households could collectively become the solution?
Every home has devices that could be flexible: water heaters, pool pumps, EV chargers, HVAC systems. Together, they represent massive untapped grid flexibility. The problem? No easy way to coordinate them at scale while fairly compensating participants.
PowerGrid Network was born from this realization: blockchain technology could solve both the coordination problem (decentralized, automated, transparent) and the incentive problem (programmable rewards, no intermediaries).
We didn't want to just build another DeFi protocol or NFT marketplace. We wanted to prove that blockchain can solve real infrastructure problems—that Web3 has utility beyond speculation.
What It Does
PowerGrid Network is a decentralized virtual power plant (VPP) built on Polkadot that pays homeowners in cryptocurrency for participating in energy grid stabilization.
Here's how it works:
- Homeowners register IoT devices (smart plugs, thermostats, etc.) on-chain by staking PWGD tokens
- Grid operators trigger demand response events when the grid needs flexibility
- Devices automatically participate by adjusting power consumption during events
- Smart contracts verify participation through real power data submitted by oracles
- Rewards are automatically distributed in PWGD tokens—no manual claims, no intermediaries
The entire flow is verifiable on-chain: device registration, power data submissions, event participation, and token distribution. Everything happens automatically through smart contracts.
Key Innovation: We've bridged the physical and digital worlds—real IoT hardware communicating with real blockchain transactions, creating a trustless, automated reward system for grid services.
How We Built It
The Stack
Blockchain Layer:
- Polkadot/Substrate - For scalability, interoperability, and fast finality
- Rust ink! Smart Contracts - Four core contracts deployed on Pop Network (Paseo testnet):
PowerGrid Token (PWGD)- Manages token supply and distributionResource Registry- Handles device registration and stakingGrid Service- Manages events and participation trackingGovernance- For future network parameter updates
IoT Integration:
- TP-Link Tapo P110 Smart Plugs - Real hardware with energy monitoring
- Python Oracle Service - Bridges devices to blockchain:
- Auto-discovers devices via DHCP
- Monitors power consumption in real-time
- Submits data to smart contracts
- Listens to blockchain events
- Distributes rewards automatically
Frontend (In Progress):
- React + Vite - Fast development, modern tooling
- Polkadot.js API - Blockchain connectivity
- TailwindCSS - Professional UI design
The Journey
Phase 1: Research & Design (April - July 2025)
- Studied VPP economics and grid stabilization mechanisms
- Designed token economics and incentive structures
- Architected the smart contract system
- Applied for Web3 Foundation Fast Grants
Phase 2: Smart Contract Development (July - September 2025)
- Built all four ink! contracts in Rust
- Deployed to local Substrate testnet
- Wrote comprehensive unit tests
- Delivered Milestone 1 - Received $5,000 from Web3 Foundation ✅
Phase 3: Hardware Integration (October 2025 - Present)
- Integrated real TP-Link smart plugs
- Built Python oracle with substrate-interface
- Solved decimal unit conversion (18-decimal contracts ↔ 12-decimal Substrate)
- Implemented DHCP auto-discovery for devices
- Tested end-to-end flow: device → oracle → blockchain → rewards
- Delivered Milestone 2 - Received $5,000 from Web3 Foundation ✅
Phase 4: Testnet Deployment (Current)
- Deploying contracts to Pop Network on Paseo testnet
- Building web dashboard for demo
- Preparing for hackathon submission
Key Technical Decisions
Why Polkadot?
- Fast finality (~6 seconds) for near-real-time grid response
- Interoperability for future energy market integration
- Shared security model ensures reliability
- Growing DePIN (Decentralized Physical Infrastructure Networks) ecosystem
Why ink! vs Solidity?
- Native Polkadot integration
- Rust's safety guarantees critical for financial contracts
- Better tooling for Substrate-based chains
- Future-proof for PolkaVM
Why Python for Oracle?
- Better IoT device libraries than Node.js
- Robust
substrate-interfacelibrary for blockchain connectivity - Easier hardware debugging and integration
Challenges We Faced
Challenge 1: Decimal Unit Conversion
Problem: Our smart contracts expected 18-decimal precision (Ethereum-style), but Substrate's native token system uses 12 decimals. This caused massive calculation errors in reward distribution.
Solution: Implemented proper unit standardization in the oracle service, converting between decimal systems before submitting to blockchain. Added extensive testing to verify calculations.
Learning: Always verify unit consistency across multi-layer systems. What works in simulation can break in production due to subtle implementation differences.
Challenge 2: DHCP IP Address Changes
Problem: Smart plugs get dynamic IP addresses from the router. Every time the network resets, devices become unreachable, breaking the oracle connection.
Solution: Implemented auto-discovery mechanism that scans the local network on startup and whenever devices can't be reached. Oracle maintains device registry with MAC addresses as permanent identifiers.
Learning: IoT integration requires accounting for real-world network chaos. Static assumptions break in home environments.
Challenge 3: Event Parsing from Blockchain
Problem: Substrate events come in complex nested structures. Parsing them to extract actionable data (which devices participated, what rewards to distribute) was significantly harder than expected.
Solution: Built robust event parsing logic with proper error handling. Created helper functions to decode event data and map to device actions. Added extensive logging for debugging.
Learning: Blockchain event structures are not trivial. Plan for significant time debugging data flows between contracts and off-chain systems.
Challenge 4: Repository Size Bloat
Problem: Git repository grew to 500+ MB due to contract build artifacts (.wasm files, target directories), making clones incredibly slow and hitting GitHub limits.
Solution: Used git-filter-repo to remove bloat from history, implemented proper .gitignore, documented build process so artifacts can be regenerated locally.
Learning: Set up proper .gitignore from day one. Build artifacts should never be committed. Repository hygiene matters for collaboration.
Challenge 5: Testing Without Real Grid Events
Problem: We can't trigger actual utility grid events in development. How do we test the full participation flow?
Solution: Built simulation mode into the oracle that can trigger mock events, simulate device participation, and verify reward distribution. This lets us test the complete system without waiting for real grid signals.
Learning: Simulation environments are critical for testing infrastructure projects where you can't control external triggers.
Challenge 6: Proving It Actually Works
Problem: Many blockchain projects are vaporware. How do we prove to judges that our system actually functions end-to-end?
Solution:
- Public testnet deployment (Pop Network on Paseo)
- Blockchain explorer links showing real transactions
- Video demonstration of live hardware → blockchain → rewards flow
- Complete code on GitHub with reproduction instructions
- Web3 Foundation grant receipts as third-party validation
Learning: Transparency and verifiability are crucial. Show, don't tell. Link to everything.
What We Learned
Technical Learnings
Polkadot/Substrate Development
- ink! smart contract development in Rust
- Substrate runtime architecture
- Cross-contract calls and event emission
- Polkadot.js API integration
- Pop Network deployment
IoT-Blockchain Integration
- Python oracle architecture patterns
- Real-time device monitoring
- Bridging HTTP/REST APIs to blockchain transactions
- Handling network unreliability
- Energy monitoring protocols
System Design
- Designing for verifiability (every action on-chain)
- Balancing on-chain vs off-chain computation
- Oracle security and trust models
- Token economics for utility tokens
Non-Technical Learnings
Grant Management
- Web3 Foundation grant process and milestones
- Importance of comprehensive documentation
- Building in public and showing progress
Problem Validation
- Energy grid challenges are real and growing
- VPPs are proven but centralized
- Blockchain can add transparency and accessibility
- Hardware integration is the hard part (software is easy)
Building with Integrity
- No fake metrics or inflated user counts
- Show real code, real contracts, real transactions
- Better to have 1 working device than 1000 fake users
- Judges value authenticity over hype
Accomplishments We're Proud Of
✅ Successfully completed 2 Web3 Foundation milestones ($10,000 in grants)
✅ Built a working end-to-end system from hardware to blockchain to rewards
✅ Deployed functional smart contracts on Polkadot testnet
✅ Integrated real IoT hardware with blockchain (not simulation)
✅ Automated the complete flow - no manual intervention required
✅ Made everything verifiable - all transactions visible on-chain
✅ Built with complete authenticity - no fake data, only real metrics
✅ Created a reusable architecture - other DePIN projects can learn from our approach
What's Next for PowerGrid Network
Immediate (Hackathon + Next Grant):
- Complete web dashboard with real-time monitoring
- Deploy to Pop Network mainnet (when available)
- Expand to multiple device types (thermostats, EV chargers)
- Multi-oracle architecture for decentralization
- Security audit of smart contracts
Medium Term (6-12 months):
- Beta program with 50-100 early adopters
- Utility partnerships for real grid events
- Mobile app development
- Advanced AI-driven optimization
- SDK for third-party integrations
Long Term (2027+):
- Scale to thousands of households
- International expansion
- Commercial building integration
- Parachain deployment on Polkadot
- Integration with energy markets and carbon credit systems
Vision:
Build the world's largest decentralized energy coordination network, proving that blockchain can solve critical infrastructure challenges while empowering individuals to participate in and benefit from the energy transition.
Try It Out
Deployed Contracts (Pop Network - Paseo Testnet):
- Token Contract:
5Grw...utQYExplorer - Registry Contract:
5HpG...j9ksWExplorer - Grid Service Contract:
5DTest...fabHEExplorer
Code Repository:
Demo Dashboard:
- Live Demo: https://demo.powergrid.energy
Documentation:
- Architecture: See GitHub /docs
- Setup Guide: See README.md
Built With
Blockchain:
- Polkadot SDK
- Substrate
- Rust (ink! smart contracts)
- Pop Network (Paseo testnet)
- Polkadot.js API
IoT & Hardware:
- TP-Link Tapo P110 Smart Plugs
- Python 3.9+
- substrate-interface library
Frontend:
- React 18
- Vite
- TailwindCSS
- Polkadot.js Extension
Tools & Infrastructure:
- Git & GitHub
- Docker (for development)
- Cargo (Rust toolchain)
- Pop CLI
External Services:
- Web3 Foundation Grant Program
- Pop Network RPC Nodes
- Paseo Testnet
PowerGrid Network is proudly built for the Polkadot Cloud Hackathon 2025, demonstrating real-world utility of blockchain technology for decentralized physical infrastructure networks (DePIN).

Log in or sign up for Devpost to join the conversation.