Day 5 – Full Stack dApp

Integration & Deployment on Avalanche Fuji

Frontend: Next.jsBackend: NestJSBlockchain: Avalanche

🔗 Wallet Connection

✍️ Update Value (Write)

Frontend → Wallet → Blockchain (User signs transaction)

📡 Read Value (via Backend)

Frontend → Backend API → Blockchain

Current Value:

N/A

📜 Events Log

ValueUpdated events from Smart Contract (via Backend)

No events found

🏗️ Full Stack Architecture

🖥️

Frontend

Next.js + wagmi
Wallet connection & UI

⚙️

Backend

NestJS + viem
API & blockchain reads

⛓️

Blockchain

Avalanche Fuji
Source of truth

📌 User signs transactions via wallet | Backend only reads (no private keys) | Smart contract = source of truth