flashbots / web3-flashbots

Web3.py plugin for using Flashbots' bundle APIs
https://pypi.org/project/flashbots/
MIT License
402 stars 209 forks source link

Run simulate in python #80

Open cryptobitf opened 1 year ago

cryptobitf commented 1 year ago

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?

UselessXiaoYao commented 7 months ago

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

odysseus0 commented 1 month ago

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