web3-flashbots
web3-flashbots copied to clipboard
Run simulate in python
Several times I tried to use the lib to run transaction simulations, but it seems to have been difficult and unsuccessful work. This is how I am importing and using the lib:
from flashbots import flashbot
signer: LocalAccount = Account.from_key(private_key)
flashbot_con = flashbot(w3, account.address)
print(flashbot_con)
The output of this print returns None, and that prevents me from moving forward with the implementation. Does anyone have an idea what it could be?
the function flashbot(...) doesn't return anything, just pass it
Gonna push a new updated starter script. Let me know if it is helpful after I push it.