I created an on-chain quiz about The Graph Advocates program to combine my passion for education and blockchain technology. The quiz is built on Polygon, uses subgraphs for efficient data querying, and rewards participants with ApeCoin.
This project is an on-chain quiz designed to educate users about The Graph Advocates program. Built on the Polygon network, it leverages blockchain technology to ensure transparency and immutability of quiz data. The quiz consists of five questions, each with multiple-choice answers. Participants can interact with the quiz through a simple web interface, and their responses are recorded on-chain.
The project combines various blockchain technologies to create an interactive and educational on-chain quiz. Here’s a breakdown of the components and technologies used:
Smart Contract: Written in Solidity, the smart contract handles the core logic of the quiz. It manages questions, records participant responses, and rewards correct answers with ApeCoin.
Polygon Network: The smart contract is deployed on the Polygon network, leveraging its high throughput and low transaction costs to ensure a smooth user experience.
The Graph: Utilized for indexing and querying blockchain data, The Graph makes it efficient to retrieve quiz-related information, such as questions, answers, and participant scores.
Frontend Interface: Developed using HTML and JavaScript, the frontend interacts with the smart contract via Web3.js, allowing users to participate in the quiz directly from their web browser.