project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

on chain sports

loyalty rewards and e commerce via web3 for baseball stadium and a professional baseball team

on chain sports

Created At

Superhack 2024

Winner of

Blockscout - Use Blockscout Block Explorer!

Prize Pool

Project Description

OnChainSports is a decentralized e-commerce platform designed specifically for sports enthusiasts. It allows users to purchase food, drinks, merchandise, and tickets for their favorite sports teams directly on the blockchain. The platform enhances the game-day experience by enabling users to have their food and drinks delivered straight to their seats, eliminating the need to leave their spot during the event. Users receive real-time notifications when their order is approaching, ensuring a seamless and enjoyable experience. Additionally, OnChainSports generates QR codes for easy access to purchases and includes a loyalty rewards system where users earn tokens for their transactions, which can be redeemed for discounts or exclusive offers.

How it's Made

OnChainSports is built using a combination of modern web technologies and blockchain infrastructure:

Frontend: The frontend is developed using Next.js, a React framework that enables server-side rendering and static site generation. This ensures fast and responsive interactions for users across the platform. Custom CSS modules are used for styling to create a consistent and polished user interface.

Blockchain Integration: The core of the platform is powered by the thirdweb SDK, which simplifies the process of building decentralized applications. thirdweb is used to manage smart contracts, handle NFT interactions, and integrate with the blockchain seamlessly. The platform utilizes ERC-1155 tokens, allowing for both fungible and non-fungible assets to be managed under a single contract. This flexibility is crucial for handling various digital assets like tickets, merchandise, and rewards.

Smart Contracts: The smart contracts are deployed on the Ethereum network and are written in Solidity. These contracts handle the minting, transferring, and ownership management of NFTs. They also manage transactions related to food, drinks, and merchandise purchases. thirdweb's SDK is used to facilitate these interactions through Web3Button components, allowing users to perform blockchain transactions directly from the user interface.

QR Code Generation: Upon purchase, the platform generates a unique QR code for each transaction, which users can use for quick access to their orders or tickets. This QR code system is integrated with the delivery tracking feature, allowing users to see real-time updates on their food and drink deliveries.

Notifications: The platform includes a notification system that alerts users when their order is on its way to their seat. This system is integrated with the blockchain transactions, ensuring that users receive timely updates.

Loyalty Rewards: OnChainSports features a loyalty rewards program where users earn tokens for each purchase. These tokens can be used for discounts on future purchases or redeemed for exclusive merchandise. The reward system is managed on-chain, ensuring transparency and security in token distribution.

E-commerce Functionality: The platform enables users to browse and purchase various sports-related products, including food, drinks, merchandise, and tickets. The integration with the blockchain ensures that all transactions are secure, transparent, and traceable.
background image mobile

Join the mailing list

Get the latest news and updates