Skip to content

How to read data from a solidity event in python ? #1871

Discussion options

You must be logged in to vote

just found out the solution, you can use 1 of the 2 following ways.

SUB_ID = tx.events["SubscriptionCreated"]["subId"]
or
SUB_ID = tx.return_value

Thanks to @neftyr for implementing VRF V2, I found out the solution from his code here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nlferu
Comment options

Answer selected by usmanfarooq91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants