Skip to content

AlakhMathur/Landsol

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

74 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 Landsol - Decentralized Real Estate NFT Platform

πŸš€ Overview

Landsol is a blockchain-powered decentralized application (DApp) that revolutionizes real estate transactions in India by leveraging ERC-721 NFTs for property ownership and IPFS (via Pinata) for secure document storage. The platform ensures transparent, fraud-proof, and tamper-resistant land dealings using smart contracts on the Ethereum blockchain.

πŸ— How It Works

  1. Admin Creates a Property Token:

    • Each property is minted as an ERC-721 NFT.
    • The NFT contains ownership details and legal documents stored on IPFS.
  2. Token Transfer to Buyer:

    • The admin transfers the property NFT to the buyer.
    • The token can be resold to another buyer directly without middlemen.
  3. Escrow-Free Transactions:

    • Smart contracts ensure transactions occur securely without third-party involvement.
    • Ownership is verified on-chain, reducing fraud risk.

πŸ”₯ Features

βœ… NFT-Based Land Ownership: Each property is tokenized as a unique ERC-721 NFT ensuring immutable ownership records.

βœ… IPFS-Based Document Storage: Property documents, agreements, and metadata are securely stored on IPFS via Pinata.

βœ… Smart Contract Transactions: Automated, secure transactions using escrow-free smart contracts.

βœ… KYC Verification: Only verified users can list, buy, or transfer property.

βœ… Fractional Ownership (Future Scope): Enables multiple users to co-own properties via NFT fractions.

βœ… Low Transaction Fees: Future Polygon integration to minimize gas fees.


πŸ›  Tech Stack

Technology Usage
Solidity Smart Contracts
Ethereum Blockchain Network
ERC-721 NFT Standard for Tokenized Properties
IPFS (Pinata API) Decentralized File Storage
React.js, Next.js Frontend Development
Node.js, Express.js Backend Services
MongoDB Database for User & Property Metadata
Web3.js & MetaMask Blockchain Authentication

πŸ”„ Smart Contract Implementation

ERC-721 NFT Contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract LandsolNFT is ERC721URIStorage, Ownable {
    uint256 private _tokenIdCounter;

    constructor() ERC721("LandsolProperty", "LAND") {}

    function mintPropertyNFT(address to, string memory tokenURI) public onlyOwner returns (uint256) {
        uint256 tokenId = _tokenIdCounter++;
        _mint(to, tokenId);
        _setTokenURI(tokenId, tokenURI);
        return tokenId;
    }
}

πŸ“‚ IPFS Storage with Pinata

To securely store property documents and metadata:

1️⃣ Upload JSON Metadata to Pinata

curl -X POST https://api.pinata.cloud/pinning/pinJSONToIPFS \
    -H "Authorization: Bearer YOUR_PINATA_JWT" \
    -H "Content-Type: application/json" \
    --data '{ "name": "Property1", "description": "Land in Mumbai", "image": "https://ipfs.io/ipfs/{CID}" }'

2️⃣ Store IPFS CID in NFT Metadata


πŸ— Deployment Steps

πŸ”Ή 1. Clone the Repository

git clone https://github.com/your-repo/Landsol.git
cd Landsol

πŸ”Ή 2. Install Dependencies

npm install

πŸ”Ή 3. Run Tests

npx hardhat test

πŸ”Ή 4. Start Hardhat Local Blockchain

npx hardhat node

πŸ”Ή 5. Deploy Smart Contract

npx hardhat run ./scripts/deploy.js --network localhost

πŸ”Ή 6. Start the Frontend

npm run start

➑ Open http://localhost:3000 in your browser to interact with the DApp.


πŸ”— MetaMask Installation

Step 1: Install MetaMask Extension

πŸ”— Download MetaMask

Step 2: Connect to Landsol

1️⃣ Open MetaMask.
2️⃣ Select Ethereum Mainnet or Localhost:8545 (for testing).
3️⃣ Import your test account using Hardhat’s generated private key.


πŸ“… Roadmap

βœ” Polygon Integration – Reduce gas fees.
βœ” Aadhaar-Based KYC – Enhance identity verification.
βœ” Fiat Payment Support – Enable INR transactions.
βœ” AI-based Property Valuation – Predict prices based on location & market trends.


Screenshots : Screenshot 2025-02-16 115148 Screenshot 2025-02-16 114908 Screenshot 2025-02-16 114925 Screenshot 2025-02-16 115654 Screenshot 2025-02-16 115710

πŸ“œ License

This project is licensed under the MIT License.




About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.5%
  • Solidity 7.2%
  • Python 3.3%
  • HTML 2.8%
  • CSS 0.2%