⚙️Chainlink

Our smart contract needs data from two web APIs, datalistic.com to provide position data of the vessel, and stormglass.io to provide the gust measure in a specific position of the vessel.

We built a Chainlink External Adapter to bridge the Storm Glass and Datalistic API to the blockchain based on the Chainlink template. Our external adapter get sthe id of the vessel as a parameter of the request. On the external adapter we get the current position of the vessel with Datalistic API, get the gust metric of the position with Storm Glass API, and provide the gust measure as a result of the request. We chose to host our External Adapter on AWS. We also hosted our Chainlink node on AWS. Then we built a bridge on the node's UI. Finally, we implement the job on node's UI, which has several tasks, like parse the coming request, use the bridge to get data from the external adapter and finally parse the result of the queried data.

Last updated