I want to create a code that can calculate the average of numbers. the numbers should come from an API or IPFS in the JSON format file. Can anyone help me?
-
To access an api from solidity you have to use an oracle like chainlink.– Ismael ♦Aug 28, 2021 at 0:57
-
but I don't have kovan public testnet to deploy– user79793Aug 28, 2021 at 5:54
-
You can run your own oracle ethereum.stackexchange.com/questions/57968/…. Some service offchain will run and send to the contract the numbers, and the contract will compute the result.– Ismael ♦Aug 28, 2021 at 19:42