Skip to content

About

a simple decentralised guestbook where users can connect their wallet and leave a short message on-chain.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GDGoC Guestbook

An on-chain guestbook where visitors sign a permanent, wallet-verified message. Every entry is stored directly on the blockchain — connect a wallet to sign, or just browse the ledger with no wallet needed.

Tech Stack

  • Frontend: Next.js, React, TypeScript, Tailwind CSS
  • Blockchain: Solidity, Hardhat, ethers.js v6
  • Wallet connection: MetaMask / injected wallet (via window.ethereum)

Network

  • Chain: Ethereum
  • Network: Sepolia Testnet

Deployed Contract

Running Locally

Prerequisites

  • Node.js v18 or later
  • MetaMask (or another injected wallet extension) installed in your browser
  • A wallet funded with Sepolia testnet ETH (get some from a Sepolia faucet) if you plan to post entries

1. Clone the repository

git clone https://github.com/ayyxbt/Guestbook-dApp.git
cd Guestbook-dApp

2. Install dependencies

npm install

3. Set up environment variables

Create a .env (or .env.local) file in the project root with:

NEXT_PUBLIC_RPC_URL=your-sepolia-rpc-url-here

Get a free RPC URL from Alchemy or Infura by creating a free account and setting up an app for the Sepolia network.

4. Run the development server

npm run dev

Open http://localhost:3000 in your browser.

5. Connect your wallet

Make sure MetaMask is set to the Sepolia network, then click "Connect Wallet" to sign the guestbook.

Smart Contract Development (optional)

If you want to modify or redeploy the contract:

cd contracts
npm install
npx hardhat compile
npx hardhat test

To deploy to Sepolia, configure your deployer wallet's private key and an RPC URL in contracts/hardhat.config.ts, then run your deployment script/Ignition module targeting the sepolia network.

About

a simple decentralised guestbook where users can connect their wallet and leave a short message on-chain.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages