Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Hello Smart Contract 🚀

A simple Solidity smart contract project configured for Base Mainnet (Chain ID: 8453) and Base Sepolia Testnet using Hardhat.


📌 Features

  • HelloBase.sol: Simple greeting contract storing on-chain greetings and transaction counts.
  • Pre-configured Hardhat: Ready for Base Mainnet and Base Sepolia.
  • Easy Deployment: One-command deployment script to Base.

🛠 Getting Started

1. Install Dependencies

npm install

2. Configure Environment Variables

Copy .env.example to .env and fill in your deployer wallet's private key:

cp .env.example .env

3. Compile Contract

npx hardhat compile

4. Deploy to Base Mainnet

Make sure your wallet has a small amount of Base ETH for gas fees:

npm run deploy:base

Or deploy to Base Sepolia testnet:

npm run deploy:base-sepolia

🌐 Network Information

Parameter Base Mainnet Base Sepolia
Network Name Base Mainnet Base Sepolia
Chain ID 8453 84532
Currency ETH ETH
RPC URL https://mainnet.base.org https://sepolia.base.org
Block Explorer Basescan Basescan Sepolia

📄 License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages