🌆 Powering the Cities of Tomorrow with Blockchain-Driven Intelligence
Lumora Solutions presents the Smart City Blockchain, a robust application built on Tendermint that connects IoT sensor data with blockchain-backed security and transparency. Designed for cities and developers aiming to track environmental metrics like CO₂, pH, and water turbidity, the app ensures reliable data logging and access through a decentralized network. With clear CLI tools (sd and scli), users can interact with the blockchain, send transactions, and query real-time sensor data.
The platform supports multi-node setups, validator creation, token transfers, and reward distribution, making it suitable for local governments or private organizations running smart infrastructure. Its modular design and straightforward deployment process allow for easy integration, whether you’re testing locally or launching a live network.
🚀 Building and running the application
🏗️ Building the smartcity application
If you want to build the smartcity application in this repo to see the functionalities, Go 1.13.0+ is required.
⚙️ Add some parameters to environment (if you’ve never used Go modules before):
🧱 Now, you can install and run the application:
📁 Go to the ./t folder (%GOPATH/{name}/smartcity/t)
💾 To run script.js file:
🔧 Running the live network and using the commands
To initialize configuration and a
genesis.jsonfile for your application and an account for the transactions, start by running:
📌 NOTES:
-
✅ If you’ve run the tutorial before, you can start from scratch with:
or by deleting:
-
✅ If you’re using Ledger (Cosmos app), add
--ledgerwhen creating a key: -
✅ 🚀 Run all steps automatically:
🛠️ If doing manually, follow these terminal commands:
🌐 While the blockchain is running, go to:http://localhost:26657/ to see all the available endpoints.
🧑🤝🧑 How to have two validators on the same blockchain:
-
❌ Delete
.sdand.sclifolders:Or:
-
🔁 Run:
Generate
genesis.jsonwith the same chain ID, different node names & IDs -
👤 Create an account:
-
📤 Send the
genesis.jsonfile from node 1 to node 2 -
🛠️ On node 2:
Replace
genesis.jsonwith the one from node 1 -
👥 Create a second account and give it a stake balance
-
🧾 Generate
gentx:
📌 Note: ❌ You should never collect the gentx to put it into genesis.json
-
📬 Send the two
gentxfiles to node 1
(Located in~/.sd/config/gentx/asgentx-..........json) -
🗂️ Replace the
genesis.jsonin node 1 -
📥 Place node 2’s
gentxfile into: -
📦 Collect all
gentx: -
✔️ Validate:
-
🔁 Send updated
genesis.jsonback to node 2 -
🔗 Configure
persistent_peersinconfig.tomlof~/.sd/config -
🏁 Start both nodes:
🔍 Check account balances
📡 Get first info from sensor
🔎 Query single transaction by hash
🧾 Query all timestamps
🔍 GiveInfo query
After deletion:
💸 Send Tokens
🛡️ Managing Validators
✅ Create Validator
🚪 Unjail Validator
🔍 Querying Validators
💰 Fee Distribution
🔗 Bonding and Sending Atoms
➕ Delegate (bond atoms to validator)
Example:
💵 Withdraw Staking Rewards
➡️ Example:
🌐 Run second node on another machine (Optional)
🧭 Init
📁 Overwrite:
🔧 Edit persistent peers:
📡 Get ID by:
▶️ Start the second node:




Reviews
There are no reviews yet.