Skip to content
Kshetra

Kshetra

Decentralized Land Ledger

Created on 26th July 2026

•

Kshetra

Kshetra

Decentralized Land Ledger

The problem Kshetra solves

🚨 The Problem: The Broken Real Estate Standard
Traditional land registries are plagued by inefficiencies, corruption, and outdated technology. Physical title deeds are easily forged, leading to rampant property fraud and double-selling. Furthermore, land boundaries are often documented ambiguously in dense legal text, causing endless neighbor disputes. Finally, tying property ownership to centralized government databases forces citizens to expose highly sensitive personal identification numbers to clerks and third parties, risking identity theft.

đź’ˇ The Solution: Decentralized Land Ledger
This project replaces the archaic, paper-based land registry system with an immutable, transparent, and automated Web3 ecosystem. By leveraging the Ethereum blockchain, IPFS, and interactive spatial mapping, we make buying, selling, and verifying land as simple and secure as sending an email.

🛠️ What People Can Use It For:
Fraud-Proof Property Trading (Trustless Escrow):
Buyers no longer need to trust centralized escrow agents. The smart contract utilizes a strict Checks-Effects-Interactions pattern. When a user buys a plot, the system atomically transfers the exact ETH amount to the seller while simultaneously transferring the deed to the buyer. If one fails, the entire transaction reverts. Double-selling is mathematically impossible.

Visual Boundary Verification:
Instead of relying on written descriptions of land, this dApp stores precise GPS coordinates (P1–P4) on-chain. These coordinates are dynamically rendered in the browser using interactive OpenStreetMap boundary polygons. Buyers can visually confirm exactly what they are paying for before executing the transaction.

Privacy-Preserving Ownership:
Users can link their government-issued IDs (like a 12-digit ID) to their property without ever exposing the raw number. The dApp hashes the ID locally using Keccak256 before interacting with the blockchain. This allows citizens to mathematically prove ownership of a deed without sacrificing their personal privacy to a public ledger.

Instant Title Searches & Immutable Provenance:
Title companies usually take weeks and charge hefty fees to verify the history of a property. Our decentralized ledger records every transaction permanently. Anyone can instantly search the blockchain to view the full, unalterable chain of custody (e.g., John Doe sold to Jane Smith on MM/DD/YYYY), completely streamlining the due diligence process.

🛡️ Why It is Safer
By decentralizing the registry via a Factory Contract Architecture, every single plot of land is isolated in its own dedicated smart contract. This prevents systemic registry failures. Combined with decentralized IPFS image hosting for the physical deeds, the system eliminates single points of failure—meaning records cannot be destroyed in a server fire, altered by a corrupt official, or lost in a bureaucratic backlog.

Challenges we ran into

đź§± Challenges We Ran Into & How We Overcame Them
Building a decentralized application that bridges real-world spatial data with immutable smart contracts presented several unique technical hurdles. Here are the major challenges we faced and how we engineered our way out of them:

  1. The "Ghost Owner" Bug: Event Logs vs. Live State
    The Problem: Initially, our React frontend relied entirely on parsing the SaveLandRegistry smart contract events to display the marketplace and user dashboards. However, we quickly realized that event logs only record the historical creation of the deed. When a property was sold, the frontend still displayed the original creator as the owner, creating a "ghost owner" desync.
    The Solution: We had to completely refactor our data-fetching architecture. Instead of just reading logs, we updated the frontend to first fetch the historical events to find all registry addresses, and then use Promise.all to dynamically connect to every individual child contract. By querying the live state variables (like the current identity hash and owner wallet) directly from the node, we achieved real-time 100% accuracy and built dynamic UI elements (like the "SOLD" overlay) based on that live data.

  2. Securing the Factory Pattern & Reentrancy Vulnerabilities
    The Problem: We chose a Factory Pattern (AllLandRegistry deploys individual LandRegistry contracts) to keep property states isolated. However, during the implementation of the buyLand function, we initially placed the Ethereum fund transfer (.call{value: msg.value}) before the state updates. This exposed the contract to a critical Reentrancy Attack, where a malicious buyer contract could potentially drain funds.
    The Solution: We strictly implemented the Checks-Effects-Interactions pattern. We refactored the buyLand function to first verify exact payments and ownership rules (Checks), then update the new owner's identity hash and name (Effects), and only then transfer the funds to the previous owner (Interactions).

  3. Bridging On-Chain Spatial Data with React-Leaflet
    The Problem: Storing massive arrays of GPS coordinates on an EVM blockchain is incredibly gas-intensive. Furthermore, passing that raw on-chain data into our frontend react-leaflet map components resulted in mismatched data types and UI crashes.
    The Solution: We implemented a custom encoding/decoding helper function. We stored the coordinates compactly as integers on-chain. On the frontend, we wrote a decodeCoordinate utility using BigInt math to parse the raw contract arguments back into precise decimal [latitude, longitude] arrays. This allowed us to dynamically draw the Polygon boundaries (P1 to P4) seamlessly on the Leaflet map without bloating our gas fees.

  4. Managing Asynchronous RPC Rate Limits
    The Problem: When querying the blockchain for property records spanning millions of blocks, our Infura RPC endpoint kept throwing rate-limit errors or timing out, causing the frontend to hang endlessly on the loading screen.
    The Solution: We built a custom getLogsInChunks helper function in React. Instead of asking the node for all blocks at once, this function breaks the query into safe chunks (9,900 blocks at a time) and utilizes a sleep(300) promise to intentionally throttle our requests. This ensured perfectly stable data syncing regardless of how many properties are added to the ledger.

Tracks Applied (4)

Best Use of Solana

Solana

Solana

Best Use of MongoDB Atlas

MongoDB

MongoDB

Best Use of Solana

Major League Hacking

Major League Hacking

Open Innovation

Discussion

Builders also viewed

See more projects on Devfolio