Simple flashbots bundle allows you to retrive your ENS name and your funds from a stream
-
Run
yarn add hardhat -
Add your Infura key and private keys to
.envfile -
Change
maxFeePerGasandmaxPriorityFeePerGasbased on current network
- Put high
maxPriorityFeePerGasso it gets accepted
- Change your stream address and the
datafield
- You can get right
databy calling a contract you want and copyhex dataof your call.
Simulateyour transactions to check if they work
- Run
node flashbotting.js
You can call any contract and add as many transactions as you want.
For that you need to change the data, to and gasLimit fields. The latter value you can get with simulate.