DEV Community

Dami_Crypt
Dami_Crypt

Posted on

Building a Blockchain Garden Tracker for Earth Day

DEV Weekend Challenge: Earth Day

This is a submission for Weekend Challenge: Earth Day Edition

What I Built

For this Earth Day challenge, I built a simple decentralized application (dApp) called Garden Tracker a tool that allows users to log the crops they plant and store that activity on the blockchain.

The idea is simple:
Plant something in real life -> Record it on-chain

Using the Solana blockchain, users can connect their wallet, select a crop, and sign a transaction that permanently records their planting activity.

Demo

I deployed my project on netlify via GitHub, the url to get to the application is : https://damiedchallenge.netlify.app/

Code

The full code can be viewed via the GitHub repository below. Also the GitHub repo contains a README file which explains what the project is about and how users can navigate it.

https://github.com/CEO12DOLS/Earth-day-challenge.git

How i built it

I built the Garden Tracker using HTML, CSS, and JavaScript with integration into the Solana ecosystem.

The app connects to the Phantom Wallet using window.solana, allowing users to securely sign transactions.Also the application uses devnet tokens to sign transactions and not real tokens

When a user plants a crop, the app creates a Solana transaction using Solana Web3.js and stores the planting data as a memo on-chain (e.g. “Planted Tomato at Backyard”).

This approach demonstrates how blockchain can be used to record real-world activities like gardening in a transparent and verifiable way.

Prize categories

  • Best Sustainability Impact - because it tracks real-world planting and promotes eco-friendly habits.

  • Best Solana Project - It uses the Solana ecosystem with wallet and on-chain transactions.

Credits

  • Solana Web3.js documentation
  • Phantom Wallet documentation
  • Inspiration from AI

Top comments (1)

Collapse
 
gilbert_dami profile image
Dami_Crypt

♥️