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
    Commented Aug 28, 2021 at 0:57
  • but I don't have kovan public testnet to deploy
    – user79793
    Commented 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
    Commented Aug 28, 2021 at 19:42

0

Your Answer

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

Browse other questions tagged or ask your own question.