I know that users can send data to Solana Programs and retrieve data from Solana Programs. I am curious if we are able to make network calls inside Solana Programs. Assume a user interacted with program and sent a required data to call an API. Let's say user sent string "California". Can we make a network call to a weather API and return weather data?
1 Answer
No. It is impossible to do IO tasks like network requests deterministically. There are many ways that the behavior of the request could change from one validator to another