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
.env
file -
Change
maxFeePerGas
andmaxPriorityFeePerGas
based on current network
- Put high
maxPriorityFeePerGas
so it gets accepted
- Change your stream address and the
data
field
- You can get right
data
by calling a contract you want and copyhex data
of your call.
Simulate
your 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
.