Skip to content

Instantly share code, notes, and snippets.

@Aviksaikat
Created August 20, 2023 00:36
Show Gist options
  • Save Aviksaikat/f13890c2ca64cef0818e7bcec7ba53f7 to your computer and use it in GitHub Desktop.
Save Aviksaikat/f13890c2ca64cef0818e7bcec7ba53f7 to your computer and use it in GitHub Desktop.
Get contract events using ape
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