Can a chain link node listen to ethereum smart contracts events? Let’s say I want to provide data to a node from a smart contract. Can a I link a chain link node and use a smart contract as an oracle?
1 Answer
Yes. In fact that’s how the Chainlink nodes operate.
When calling buildChainlinkRequest
and sendChainlinkRequestTo
In the any API call feature you are actually emitting events that chainlink nodes look for.
You can modify this to have a node looo for your specific event, but you need to use a node that uses an ethLog
initiator instead of runLog
. Check out the initiators documentation.
-
What listens for the ethereum smart contract events? Is it a chain link smart contract or a single chain link node?– YulePaleApr 7, 2021 at 4:19
-
1Smart contracts can’t “listen” to events, only an off-chain system can. So it’s the chainlink node that listens. Apr 7, 2021 at 10:42