Non-fungible tokens (NFTs) have gained popularity in recent years as a secure and verifiable way to represent digital assets. In this project, we explore the use of NFTs in IRCTC Railways to provide secure and verifiable ticketing for passengers. By using NFTs, passengers can purchase and redeem their tickets digitally, eliminating the need for paper tickets and reducing the risk of fraud. We will develop a DAPP that allows passengers to search for train routes, purchase NFT tickets, and store them securely on their mobile device. The application will feature faster online booking, resoldable tickets, and less need for ground surveillance. Additionally, we will associate some travel benefits with NFT tickets, such as priority boarding or access to lounges, and offer discounts for regular travelers on a specific route, incentivizing them to use NFT tickets for their journeys. Users can also take up loans on their NFTs, which they have to clear after the journey ends. This is beneficial in situations where there are network issues with payments. The application will also provide ticket inspectors with a way to verify the authenticity of NFT tickets. Through this project, we aim to provide a more secure, convenient, and rewarding ticketing system for IRCTC Railways passengers.
For Results, Future Plans and More Information on the project view - (https://github.com/33Shivam/SolveForIndia/blob/0265a1d6d38ae3c3798413c2590daeeb568d1bdf/NEXT%20GENERATION%20TICKET%20SYSTEM.pdf) (DOWNLOAD ONLY)
Before you begin, make sure you have the following software installed:
- Clone the repository:
git clone https://github.com/33Shivam/SolveForIndia
- Install Web3.js:
npm install web3
- Install OpenZeppelin Libraries:
npm install @openzeppelin/contracts
- Install Hardhat:
npm install --save-dev hardhat
- Run a local Hardhat node:
Copy code
npx hardhat node
- In a separate terminal window, deploy the contract to the local node:
npx hardhat run scripts/deploy.js --network localhost
- Start the React app:
npm start
-
Open Metamask and connect to the local Hardhat network by selecting "Custom RPC" and entering
http://localhost:8545as the URL. -
In the app, enter the details of the ticket you wish to purchase and click "Mint Ticket/ Book My Ticket ".
-
Metamask will prompt you to confirm the transaction. Once you confirm, the ticket will be purchased and a NFT will be craeted.
Contributions are welcome! To contribute to the project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Description of changes"
- Push your changes to your forked repository:
git push origin feature-name
- Create a pull request to merge your changes into the main repository.
**This Project is a part for SolveForIndia Hackathon in Collaboration with Google and AMD"