Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run simulate in python #80

Open
cryptobitf opened this issue Jul 24, 2023 · 2 comments
Open

Run simulate in python #80

cryptobitf opened this issue Jul 24, 2023 · 2 comments

Comments

@cryptobitf
Copy link

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
Copy link

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

@odysseus0
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants