Skip to content

Initiators

Steve Ellis edited this page Feb 18, 2018 · 11 revisions

Initiators are the entry points for ChainLink’s job pipeline. When a job is created its initiators are explicitly declared. ChainLink initially supports five initiator types: RunLog, Web, Cron, EthLog, and RunAt.

RunLog

RunLog is the easiest initiator to use when integrating ChainLink with on-chain contracts. It works similarly to EthLog, but adds some helpful glue in to stitch together the off-chain job with the on-chain contracts.

When a RunLog job is created, ChainLink begins watching the blockchain for any log events that include that job’s ID. If any of the events that come back match the log event signature of the ChainLink oracle contract, then the ChainLink node parses the data out of that log and passes it into a new log run.

RunLog Parameters

RunLog initiators take an optional address parameter. The address parameter is optional, and takes an Ethereum address. By adding the address parameter, you make the event filter of the RunLog initiator more restrictive, only listening for events from that address, instead of any address.