A comprehensive guide to Web3 development covering Solidity smart contracts, Hardhat framework, React integration, and blockchain interaction examples.
Example | Folder | Description |
---|---|---|
00 | 00-rsa-dsa | RSA/DSA cryptography examples using Jupyter Notebook |
01 | 01-helloworld | Basic Hello World smart contract in Solidity |
02 | 02-set-get | Simple storage and retrieval smart contract |
03 | 03-event | Solidity events and logging examples |
04 | 04-token | Basic token smart contract implementation |
05 | 05-get-event-log | Python web3.py event log retrieval |
06 | 06-hardhat-sample1 | Hardhat framework with Token contract |
07 | 07-hardhat-sample2 | Hardhat framework with SimpleStorage contract |
08 | 08-voting | Voting smart contract example |
09 | 09-amm | Automated Market Maker (AMM) smart contracts |
10 | 10-ethersjs | Ethers.js integration examples |
11 | 11-authentication(DSA) | DSA authentication and multisender examples |
12 | 12-multisender | Multisender smart contract for batch transfers |
- Solidity: Smart contract development language
- Hardhat: Ethereum development environment
- Remix IDE: Online Solidity compiler and IDE
- React: Frontend framework for Web3 applications
- Ethers.js: Ethereum JavaScript library
- Web3.js: Alternative Ethereum JavaScript library
- Python: Backend development and blockchain interaction
- web3.py: Python library for Ethereum interaction
- FastAPI: Modern Python web framework
- Infura API: Ethereum node service
- Base Sepolia: Test network for development
- AWS/Azure: Cloud deployment options
- Network: Base Sepolia (https://sepolia.basescan.org/)
- Explorer: https://sepolia.basescan.org/address/0xfab19c296f34b48471b831f59850da888e73fb7f
- Purpose: Development and testing environment
- Node.js (v16 or higher)
- Python (v3.8 or higher)
- Git
# Clone the repository
git clone <repository-url>
cd web3-guide
# Install Node.js dependencies (for Hardhat examples)
npm install
# Install Python dependencies (for web3.py examples)
pip install web3 jupyter
Each example folder contains its own README with specific instructions. Generally:
- Solidity Contracts: Use Remix IDE or Hardhat
- Python Scripts: Run with Python interpreter
- React Apps: Use
npm start
oryarn start
- Hardhat Projects: Use
npx hardhat
commands
- Start with Basics: 01-helloworld, 02-set-get
- Learn Events: 03-event, 05-get-event-log
- Explore Tokens: 04-token
- Framework Usage: 06-hardhat-sample1, 07-hardhat-sample2
- Advanced Features: 08-voting, 09-amm
- Frontend Integration: 10-ethersjs
- Security & Authentication: 11-authentication(DSA), 12-multisender
Feel free to contribute by:
- Adding new examples
- Improving existing code
- Updating documentation
- Reporting issues
This project is licensed under the MIT License - see the LICENSE file for details.