Skip to content

montasser99/real-estate-smart-contract

Repository files navigation

Real Estate Smart Contract

This project demonstrates how to create, deploy, and test a smart contract for real estate management using RemixIDE, interact with it via MetaMask, and integrate a web interface using web3.js for seamless blockchain interactions.

Prerequisites

  1. MetaMask Install the MetaMask browser extension and create an account.

  2. Sepolia Test Network

  • Switch your MetaMask network to Sepolia (test network).
  • Add free test ETH to your wallet using Sepolia Faucet.
  1. Node.js Install Node.js if not already installed (for the HTTP server).

Steps to Deploy the Contract

  1. Open RemixIDE
  1. Create and Compile the Smart Contract
  • Create a new .sol file in RemixIDE.

  • Copy the contract code from RemixIDE Code Sol File.txt into the file.

  • Compile the contract using the Solidity Compiler tab.

  1. Deploy the Smart Contract
  • Go to the Deploy & Run Transactions tab in RemixIDE.

  • Select Injected Provider - MetaMask as the environment.

  • Deploy the smart contract and confirm the transaction in MetaMask.

  1. Retrieve Contract Details
  • Note the contract address, your MetaMask account address, and ABI from the RemixIDE deployment logs..

Running the Application

  1. Install HTTP Server Install a simple HTTP server globally using the command below:
npm install -g http-server
  1. Run the Server Install a simple HTTP server globally using the command below:
http-server
  1. Connect to the Contract Use the retrieved contract address, account address, and ABI in the frontend code to interact with the smart contract.

Notes

  • What is Sepolia? Sepolia is an Ethereum test network for testing smart contracts without using real ETH.

Support

If you encounter any issues, feel free to contact: Montasser Benouirane

Email: montasser.benouirane@esprit.tn

Application Overview and Visuals

App Screenshot 1 App Screenshot 2 App Screenshot 3
App Screenshot 4 App Screenshot 5 App Screenshot 6

About

A Solidity smart contract for managing real estate, enabling secure property addition, viewing, and transfer via blockchain. Integrated with Web3.js for seamless dApp interaction and transaction execution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors