Created
August 20, 2023 00:36
-
-
Save Aviksaikat/f13890c2ca64cef0818e7bcec7ba53f7 to your computer and use it in GitHub Desktop.
Get contract events using ape
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ape import project | |
address = "0xdead" | |
#contract = project.ContractName.at(address) | |
contract = project.IUniswapV2Factory.at(address) | |
for logs in contract.PairCreated: | |
print(logs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment