TABLE 16

A blockchain-powered clothing marketplace built on Solana that not only transforms physical garments into NFTs but actually records and rewards users based on deep clothing timelines. The system creates verifiable ownership histories and incentivising sustainable fashion practices through a loyalty rewards system. The platform tackles fashion waste by gamifying garment longevity—each time a clothing item changes hands or is worn, it accumulates loyalty points and builds an immutable on-chain timeline. This creates a transparent provenance record for items that traditionally exist only in the physical world. Creates a verifiable, incentivized ecosystem that encourages clothing reuse and extends garment lifecycles while providing transparency in the fashion resale market. It essentially lets you upload items from your wardrobe and track their "journey". You connect your pahntom wallet, add your clothes and then log events such as wearing something, swapping it, passing it on, repairing it etc on chain.

Every event gives you loyalty points and also gets recorded on solana devnet so each item builds a simple, verifiable timeline. It’s basically a way to give normal clothes a visible history instead of them just existing offline. When a user uploads an item, our Flask backend triggers the master wallet to mint a token/NFT for it and send it to the user’s wallet (so the user never has to sign anything complicated). For logging journeys, the frontend sends the action to our Flask API, and Flask creates a small Solana transaction using the Memo program. That transaction stores the event data (e.g., “wear”, “swap”, timestamp, item ID) on-chain. We also built a simple loyalty system: whenever an event is logged, the backend sends a small amount of an SPL loyalty token to the user’s wallet. The loyalty token was basically manually minted with a very high supply by the master wallet using a js script. The master wallet basically covers all tx fees, it mints the clothing nft when the user submits the form, and immediately sends it to the users connected session phantom wallet, creating a token account at the same time. The master wallet also controls the spl token and distributes 1 per journey to the users wallet. Everything runs on Solana Devnet, with Flask acting as the bridge between the js and on-chain interactions.

Metaplex was not suitable for localhost so we couldn't do transactions within the browser which meant users couldn't authorise transactions. This meant that we needed a master wallet to mint NFTs initially and immediately send it to the users phantom wallet. Basically, metaplex create() fails on localhost with: attempt to load a program that does not exist. In order to use localnet you need to load all existing programs other than solana native which we deemed out of the scope of the project. This could definitely be implemented in the future which would allow peer to peer nft transactions on chain, instead of just in the database for now. Put simply, we are only able to send tokens to users connected phantom wallets, and not from due to the inability to sign transactions within the browser.

In future, We hope to implement the peer-to-peer transactions on chain and also allow for making the actual payments in solana or usdc for simplicity. Also, we would like to add a feature for brands that allows them to create QR codes for events that they host. Users can scan these and for eligible brand items on their account, they will get loyalty points Other stuff like that such as brand events, clothing drops, trends etc so that brands can get more involved in engaging with the fashion retail market!

Share this project:

Updates