Загрузка...

Build a decentralized crowdfunding app on Conflux eSpace Testnet — from smart contract to frontend.

In this video, I walk through CFXCrowd (SimpleCrowdfund): contribute CFX before the deadline, withdraw when the goal is met, or refund if it isn’t. You’ll see the full UI demo plus how the frontend talks to the contract using ethers.js.

🔹 What you’ll learn
• Deploy SimpleCrowdfund on Conflux eSpace Testnet (chain ID 71)
• Connect MetaMask and interact from a Next.js frontend
• Read on-chain data: goal, total raised, deadline, creator
• Call contribute(), withdraw(), and refund() from the app
• How hooks/use-crowdfund.ts + lib/contract.ts connect UI ↔ blockchain

🔹 Tech stack
• Solidity — SimpleCrowdfund smart contract
• Next.js + TypeScript — frontend
• ethers.js — wallet & contract calls
• Conflux eSpace Testnet — deployment network

🔹 Smart contract flow
1. Creator deploys with goal (CFX) + duration (minutes)
2. Users contribute before deadline
3. After deadline: creator withdraws if goal reached, else contributors refund

⚠️ Constructor tip: use _durationInMinutes (e.g. 60 = 1 hour), NOT a Unix timestamp.

🔗 Repo / resources

github.com/Vikash-8090-Yadav/cfxcrowd

⏱️ Timestamps
0:00 — Intro
0:10 — Live demo: connect wallet & contribute
1:05 — Campaign ended & withdraw
2:00 — Frontend ↔ contract connection (use-crowdfund.ts, lib/contract.ts)
2:50 — Smart contract recap (cfxcrowd.sol)
5:00 — Wrap-up

#Conflux #CFX #Web3 #Solidity #NextJS #DeFi #Crowdfunding #Blockchain #Testnet #dApp

Видео Build a decentralized crowdfunding app on Conflux eSpace Testnet — from smart contract to frontend. канала Vikash Kumar Yadav
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять