【发布时间】:2021-07-15 20:29:58
【问题描述】:
在下面的代码中,我有 2 个 URL,每个 url 都有一个路径
These are 2 urls
api[0] = "https://www.bitstamp.net/api/v2/ticker/ethusd/";
api[1] = "https://api.pro.coinbase.com/products/eth-usd/ticker";
The path for URL 0 is last and the path for URL 1 is price
我希望 chainlink 节点从这 2 个 url 获取数据(最后和价格)并计算来自 2 个 url 的数据的中位数 即中位数 = {last+price)/2; 如何在 Chainlink 中为这个逻辑编写代码
【问题讨论】:
标签: blockchain ethereum smartcontracts chainlink