A simple Solidity smart contract project configured for Base Mainnet (Chain ID: 8453) and Base Sepolia Testnet using Hardhat.
- 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.
npm installCopy .env.example to .env and fill in your deployer wallet's private key:
cp .env.example .envnpx hardhat compileMake sure your wallet has a small amount of Base ETH for gas fees:
npm run deploy:baseOr deploy to Base Sepolia testnet:
npm run deploy:base-sepolia| 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 |
MIT