0

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?

3
  • 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
    – user79793
    Aug 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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.