June 25, 2023
ETH Swap
Now we will show you a script that will autonomously perform Ethereum swaps in the arbitrum / optimism / arbitrum nova networks.
Go to the provided link and carefully read the "README" file. Then click on "code" and download the zip archive.
Launch VS Code and import the previously downloaded files.
So, now we can see all the files and the main code located in the config.py section:
Once again, we access the README file and thoroughly read the script configuration. All the variables are already included in the code, and you will only need to adjust them to your needs.
Settings : 1. In ```config.py``` change the values of variables : - CHAIN = network we will work with ( NOVA | ARBITRUM | OPTIMISM ) - FROM_AMOUNT = Specify the minimum amount of ETH to swap - TO_AMOUNT = Specify swap amount of ETH - RM_AMOUNT = Number of decimal places - SLEEP_FROM = sleep from (in seconds) between swap and next wallet - SLEEP_TO = sleep to (in seconds) between swap and next wallet - FROM_COIN = Specify the minimum purchase amount of coins (default 1) - TO_COIN = Specify the maximum purchase amount (>= 1) - RM_WALLETS = True if you want to randomize the wallets, False if you don't want to - COINS = You can add coins here by specifying the coin's address and symbol. I have already added a few for regular warm-up, which should be enough 2. Add private keys from wallets to the ```private_keys.txt``` file. There should be no empty lines 3. Run the ```run.py``` file
In the "private_keys.txt" folder, enter the private keys from MetaMask.
Here are the steps to find the private key of your MetaMask wallet: