Hello! Tell me, is it possible to track events in solidity from another contract and send transactions automatically when an event is called?

Is there such a mechanism or something similar? So that it automatically generates a transaction without the knowledge of the user

Nov 30, 2022, 7:35 AM
I'll like a response to this TBH
Nov 30, 2022, 7:37 AM
What is TBH?
Nov 30, 2022, 7:39 AM
To Be Honest
Nov 30, 2022, 8:04 AM
To The Moon
Nov 30, 2022, 8:26 AM
using only contracts nope
Nov 30, 2022, 8:38 AM
to generate a valid transaction, you need to sign the raw transaction with a pkey
so nope
contracts cannot do that (thank vitalik)
Nov 30, 2022, 8:52 AM
But it's possible to do so with a python script right?
Also, what about to query the state of a contract when an event occurs?
Nov 30, 2022, 8:53 AM
you can subscribe to events and do actions once you receive an update
Nov 30, 2022, 8:55 AM
What about in a contract, if I want to read the state of a contract after an event occured in another contract?
Can I do that!
Nov 30, 2022, 8:58 AM
of course you can, still from a script.
A contract doesn't know past or future state, nor understand there is another block or network at all
Nov 30, 2022, 9:01 AM
Okay thanks
Nov 30, 2022, 9:01 AM
view evm as a virtualbox without internet, when the execution it's complete it shutdown
so you cannot query events, past states (without saving them on storage)
Nov 30, 2022, 9:02 AM

© 2024 Draquery.com All rights reserved.