Skip to content
M

MentorMint

Your AI mentor, minted as an NFT forever.

Created on 15th March 2026

•

M

MentorMint

Your AI mentor, minted as an NFT forever.

The problem MentorMint solves

78% of first-year engineering students quit coding within 6 months — not because
they lack talent, but because they lack personalised guidance.

Existing solutions fail in 3 ways:

  • Generic AI (ChatGPT, Gemini) gives the same answer to everyone and forgets
    you after every session
  • No ownership — your learning history lives on someone else's server and can
    be deleted or paywalled anytime
  • No progress tracking — there is no verifiable proof that you actually grew
    as a developer

MentorMint solves all three:

Personalised — Google Gemini 2.5 Flash generates a unique mentor built
specifically for your needs, expertise level and learning style

Owned forever** — your mentor is minted as an ERC-721 NFT on Ethereum —
no company can delete it, paywall it or take it away

Verifiable growth — every XP gain and level-up is recorded permanently
on the blockchain with timestamps — a tamper-proof learning resume

Built for India's 1.5 million engineering graduates who cannot afford private
tutors or premium coaching — MentorMint makes world-class personalised mentorship
free and accessible to every student regardless of college tier, city or background.

Challenges we ran into

Building MentorMint in 24 hours as a first-year team came with serious technical
challenges:

1. Gemini API Silent Failures
Our chat was returning the same 4 repeated responses. The root cause was that
process.env.GEMINI_API_KEY was being read at module load time in Next.js —
before environment variables were available — storing undefined permanently.
Fixed by moving env reading inside each function call so it reads fresh every time.

2. Gemini Strict Message Alternation
Gemini's API requires strict user → model → user → model alternation in the
conversation history. When two consecutive messages had the same role, the API
silently errored. Fixed by adding role deduplication logic before building the
message array.

3. Gemini Model Deprecation Mid-Hackathon
gemini-1.5-flash was deprecated and removed from the v1beta endpoint overnight
while we were building. Woke up to broken chat. Migrated to gemini-2.5-flash-preview
which resolved it.

4. Smart Contract Gas Optimisation
Storing full mentor metadata on-chain caused high gas fees. Optimised by storing
only essential fields in the struct and moving rich metadata to base64-encoded
tokenURI — reducing transaction cost significantly.

5. ethers.js v6 Breaking Changes
Many online resources use ethers.js v5 syntax which is completely different in v6.
Provider initialisation, contract interaction and event handling all changed. Had
to work entirely from v6 documentation with no Stack Overflow help available.

6. JSON Parsing from Gemini
Gemini occasionally wraps JSON responses in markdown code fences (```json).
Added regex stripping and fallback extraction to handle malformed responses
gracefully without crashing the mentor generation flow.

Tracks Applied (5)

Ethereum Track

MentorMint is a fully on-chain Web3 application built on Ethereum Sepolia: Smart Contract — MentorNFT.sol Written in S...Read More
ETHIndia

ETHIndia

Electrothon 8.0 Winners

MentorMint is built to win — not just participate. As a first-year team with zero prior hackathon experience, we built ...Read More

Electrothon 8.0 Honors Track

MentorMint is built entirely by a first-year team — Anubhav, Ajay, Komal and Tanishqa — with zero prior hackathon exper...Read More

Google Cloud

MentorMint is powered by Google's AI infrastructure at its core. We use Google Gemini 2.5 Flash via the Google AI Studi...Read More
Major League Hacking

Major League Hacking

Best Use of Gemini 3 [Google Deepmind]

MentorMint directly aligns with the Electrothon 8.0 Honors Track through its integration of Google Gemini 2.5 Flash as ...Read More

Google Deepmind

Discussion

Builders also viewed

See more projects on Devfolio