A blockchain-powered loan exchange platform that enhances efficiency and transparency in the lending process. It connects borrowers and lenders seamlessly through smart contracts deployed on the blockchain.
- Decentralized Loan Exchange: Borrowers can submit loan applications, and lenders can easily find investment opportunities.
- Smart Contract Automation: Loan agreements are automatically verified and deployed on the blockchain.
- Blockchain Explorer: View recent blocks, transactions, and contract details in an intuitive interface.
- MetaMask Integration: Secure login and transactions using MetaMask wallet.
- User-Friendly UI: A responsive and accessible interface for borrowers and lenders.
- Frontend: React, TailwindCSS
- Backend: Node.js (for contract deployment)
- Blockchain: Ethereum (via Web3.js)
- UI Components: ShadCN, Lucide-React
src/
│-- components/
│ │-- TitleBar.jsx # Application header with MetaMask login and Loan form
│ │-- BlockchainExplorer.jsx # Main blockchain data explorer component
│ │-- BlockSlider.jsx # Block slider for quick navigation
│ │-- BlockList.jsx # Paginated list of blocks
│ │-- ContractTable.jsx # Displays deployed loan contracts
│ │-- ContractDetail.jsx # Detailed view of a selected contract
│ │-- LoanForm.jsx # Loan application form for borrowers
│ │-- MetaMaskLogin.jsx # MetaMask wallet connection component
│-- App.jsx # Main app component
│-- main.jsx # Entry point
│-- index.css # Global styles
Ensure you have the following installed:
- Node.js (v16+)
- MetaMask browser extension
- Ganache (or any Ethereum testnet)
-
Clone the repository:
git clone https://github.com/yourusername/loan-exchange.git cd loan-exchange
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Run a local Ethereum blockchain (e.g., Ganache) and update the blockchain provider in
BlockchainExplorer.jsx
:const web3 = new Web3("http://localhost:7545");
-
Open the app in your browser:
http://localhost:5173
- Connect your MetaMask wallet.
- Apply for a loan through the form.
- Track blockchain activity via the explorer.
- View and manage loan contracts.
- Implement interest rate calculations and repayment tracking.
- Add support for multiple loan types and terms.
- Improve contract management and borrower credit assessment.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.