web3-flashbots icon indicating copy to clipboard operation
web3-flashbots copied to clipboard

Run simulate in python

Open cryptobitf opened this issue 2 years ago • 2 comments

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?

cryptobitf avatar Jul 24 '23 11:07 cryptobitf

the function flashbot(...) doesn't return anything, just pass it

UselessXiaoYao avatar Jan 11 '24 08:01 UselessXiaoYao

Gonna push a new updated starter script. Let me know if it is helpful after I push it.

odysseus0 avatar Jul 20 '24 19:07 odysseus0