This repository demonstrates the implementation of EIP-7702 batch transactions in several formats:
- Smart Contract Implementation - Foundry-based smart contract implementation
- Web Application - React-based web application for interacting with batch transactions
- Python Implementation - Python script for executing batch transactions
/eip_7702_batch_txs- Foundry smart contract implementation/web-app- React web application/main.py- Python implementation/abi- ABI files for contract interactions
cd eip_7702_batch_txs
forge install
forge build
forge testcd web-app
npm install
npm run dev# Create and activate virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file with your private keys and configuration
echo "PRIVATE_KEY=your_private_key_here" > .env
echo "HOODI_RPC_URL=your_rpc_url_here" >> .env
# Run the script
python main.pyThe application is configured through config.json. See config_loader.py for implementation details.
NEVER commit your private keys or sensitive information to GitHub!
This project uses environment variables to manage sensitive information. Make sure to create a .env file locally and add it to .gitignore.
MIT
