This repository contains a collection of Python scripts designed to interact with the Haust Testnet, a blockchain test network. These scripts enable users to deploy ERC20 tokens, mint NFTs, send tokens, and perform transactions using the Haust Testnet RPC. Each script is built with the web3.py library and provides bilingual support (English and Vietnamese) for user interaction.
Faucet: HAUST
- Multi-Account Support: Reads private keys from
pvkey.txt
to perform actions across multiple accounts. - Colorful CLI: Uses
colorama
for visually appealing output with colored text and borders. - Asynchronous Execution: Built with
asyncio
for efficient blockchain interactions. - Error Handling: Comprehensive error catching for blockchain transactions and RPC issues.
- Bilingual Support: Supports both Vietnamese and English output based on user selection.
- deploytoken.py: Deploy an ERC20 token contract on the Haust Testnet.
- mintlabkit.py: Mint the "Haust Lab Kit" NFT.
- mintnutrition.py: Mint the "Nutrition Medium" NFT.
- mintpetri.py: Mint the "Haust Petri Dish" NFT.
- sendtoken.py: Send ERC20 tokens to random addresses or addresses from a file.
- sendtx.py: Send HAUST testnet transactions to random addresses or addresses from a file.
- main.py: A unified script to run all the above functionalities from a single interface.
Before running the scripts, ensure you have the following installed:
- Python 3.8+
pip
(Python package manager)- Dependencies: Install via
pip install -r requirements.txt
(ensureweb3.py
,colorama
,asyncio
, andeth-account
are included). - pvkey.txt: Add private keys (one per line) for wallet automation.
- Access to the Haust Testnet RPC (https://rpc-testnet.haust.app)
- address.txt / addressERC20.txt: Optional files for specifying recipient addresses.
- Clone this repository:
- Open cmd or Shell, then run the command:
git clone https://github.com/thog9/Haust-testnet.git
cd Haust-testnet
- Install Dependencies:
- Open cmd or Shell, then run the command:
pip install -r requirements.txt
- Prepare Input Files:
- Open the
pvkey.txt
: Add your private keys (one per line) in the root directory.
nano pvkey.txt
- Open the
address.txt
(optional): Add recipient addresses (one per line) forsendtx.py
,deploytoken.py
,sendtoken.py
.
nano address.txt
nano addressERC20.txt
nano contractERC20.txt
- Run:
- Open cmd or Shell, then run command:
python main.py
- Choose a language (Vietnamese/English).