1

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 1

1

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.

2
  • What listens for the ethereum smart contract events? Is it a chain link smart contract or a single chain link node?
    – YulePale
    Apr 7, 2021 at 4:19
  • 1
    Smart 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.