How to read data from a solidity event in python ? #1871
-
Hello everyone, First let me explain code. Below is the event
And here is the function where its been emitted
What I am trying to do is to read
first I am deploying the Last print statement prints the following result
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
just found out the solution, you can use 1 of the 2 following ways.
Thanks to @neftyr for implementing VRF V2, I found out the solution from his code here. |
Beta Was this translation helpful? Give feedback.
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.