This project can generate randomized cryptocurrency transactions or token bridges between specified wallet addresses. It is intended to provide sample transaction data for testing purposes.
The application is structured as follows:
config.py
- Defines configuration settings like wallet addresses, API keys, etcutils.py
- Helper functions for generating random valuessend.py
- Logic for sending direct Ethereum transactionsbridge.py
- Logic for bridging ERC20 tokens across chainsapp.py
- The main application loop
-
Update
config.py
with your Infura project ID, wallet addresses, and other settings. -
Implement the transaction and token bridge logic in
send.py
andbridge.py
. Refer to the Web3 and protocol docs. -
Run
python app.py
to start generating randomized transactions.
The app continually loops, randomly selecting wallet pairs, amounts, and delays between transfers.
-
The script currently outputs simple logging messages.
-
For advanced monitoring, integration with tools like Prometheus is recommended.
The config.py
file contains several settings that can be tuned:
WALLETS
- List of wallet addresses to choose fromTOKEN_ADDRESS
- Contract address of the token to sendMIN_AMOUNT
- Minimum random amount to transferMAX_AMOUNT
- Maximum random amount to transfer- ...
Errors from the transaction and bridging logic are caught and logged. Some common issues:
- Invalid wallet private keys or insufficient funds
- Network issues connecting to Infura
- Errors in the underlying send/bridge implementations
- Incorrect nonce values if transactions are not sequenced properly
Possible enhancements include:
- Web UI for configuring and monitoring
- Dynamic wallet and token selection
- Failure injection for robustness testing
- Scheduled execution via cron/Celery/Kubernetes
Let me know if you have any other questions!