Chainlink - RSK Data Flow
-
When a Chainlink request is created, a Consumer contract sends an on-chain transaction to an Oracle Contract within the Rootstock (RSK) blockchain. That transaction transfers payment tokens, along with the data representing your request. The Oracle Contract tracks balances from requesters and emits an event which notifies the off-chain Chainlink network (via the External Initiator), that this event needs to be processed.
Once the request is received, Chainlink performs the work of the request and returns the answer to the Oracle contract (via the External Adapter). The Oracle Contract updates the balance to pay the node operator and returns the result to the Consumer Contract.
Core Components:
- External Data
- Chainlink node
- External Adapter
- External Initiator
The following diagram presents the Chainlink/Rootstock integration architecture and core components: