An auction application with crypto wallet payment through MetaMask
This project leverages smart contracts to record auction item information instead of relying on conventional databases. Whenever a seller intends to auction an item, a new smart contract is generated, encompassing all the pertinent details, and subsequently deployed onto a blockchain. The frontend application exhibits a comprehensive collection of items available for auction, enabling potential bidders to effortlessly browse through them, examine descriptions, and place bids.
Throughout the course of an auction, bids are diligently gathered from interested participants. Once an auction reaches its conclusion, the user with the highest bid emerges as the victorious bidder, while all other bidders receive prompt refunds.
This project utilizes Ganache as the deployment platform for smart contracts that facilitate the recording of auction information.
To initiate the auction process, sellers are provided with a user-friendly form within the application. Upon submission, the backend takes charge, utilizing Truffle to spawn the deployment of smart contracts to Ganache. The backend diligently collects all the existing smart contracts and promptly responds to frontend requests by transmitting a comprehensive list of contract addresses. With the aid of MetaMask, the frontend is able to effectively query Ganache using these contract addresses, resulting in the display of a visually appealing grid showcasing the items available for auction within the application.
Bidders, eager to participate, can conveniently place their bids on desired items. The bid information is seamlessly transmitted to Ganache through the integration with MetaMask.
Upon the completion of an auction, the application promptly proceeds to issue refunds to all bidders, excluding the winner, ensuring fairness and transparency throughout the process.