Inspiration

Being a university student, it isn't easy to manage expenses on top of the already increasing huge education loans. A student has to buy a lot of books, notes and much more stuff for every course they enrol in a university and most people don't open these books ever, once the particular course is completed. Many of these books are quite expensive and buying everything new leads to huge expenses. Why not reduce these expenses by selling these books for cheaper prices to other people taking the course next time? This is not limited to books, at a university we need to buy many things for a specific course and never use them again, so we can sell these things to other people for a cheaper price, reducing their expenses as well as giving some of our money we spent in buying those things. Being a university student myself, I find this idea very exciting, so I thought of working on the same for this hackathon.

What it does

We create a platform where people can list the stuff they want to sell. Then someone, who wants the product will buy through the platform. Once they have bought the item through the website, the money is escrowed to a smart contract. The buyer can then show the same to the person selling the product. After receiving the product, the buyer accepts that they have received the product on the website so that the seller can collect the money which was earlier escrowed to the smart contract.

How we built it

We created a frontend website with a smart contract running in the backend. The user can either list the items they want to sell using the website or look for already listed items to buy. Listing an item uploads the data to Pinata's decentralized storage system. The item details are added to the smart contract so that the next time anyone loads the website to look for things to buy, It fetches the data from the smart contract to show all the currently available items.

Challenges we ran into

Learning about escrowing was a challenge I faced. Also, being fairly new to blockchain and web3, learning how to store data using decentralized storage was also a challenge I faced. There are still some minor bugs which I am trying to fix.

Accomplishments that we're proud of

It was my first time developing the whole frontend as well backend, so I am proud of completing the whole project in the given very small time stretch.

What we learned

I learned a lot doing this project in the hackathon. I am very new to blockchain and web3 so every small progress was a milestone for me. Learning about escrowing, decentralized storage, URI721Storage contracts and much more.

What's next for SecondHandMarketplace

There are some bugs I have already noticed and I am sure there must be many more, so I will keep working on the project even after the hackathon to launch a full-fledged website to solve the problem I mentioned earlier.

Share this project:

Updates