

Connecting the API to Chainlink

Chainlink can connect to ANY API to transport data to smartcontracts.
I created a simple API that will tell you whether a user 'passed' a test or not based on an arbitrary percentile value.
I then used Chainlink to connect this API to a smart contract on Kovan that updates its values based on these API results.
It is a simple and powerful demonstration of how Chainlink can easily bring ANY API data to smartcontracts.
"Pass" API
Send a user account, test ID, and arbitrary passing threshold (an integer that is 1-100) to the API. The API will return a boolean value based on whether the user scored equal to or higher than the threshold on the specified test.
API Return
*api data will return here*
Send API Data to Smart Contract with Chainlink

Send API Data to Smart Contract