I was not able to find anyone invoking this subject, which means that it probably is not feasible, but I need to make sure.
So is there any way one could call some endpoint from a smart contract?
I was not able to find anyone invoking this subject, which means that it probably is not feasible, but I need to make sure.
So is there any way one could call some endpoint from a smart contract?
No it is not, by protocol. Accepting such thing would be a hole security. Smart contracts are meant to deal with data on the blockchain itself in an isolated and controlled environment.
Disclaimer: this is not only for solana but for most blockchains (cannot say for sure if for all of them, but it would make sense it would).
chainlink data feeds are available on solana.
https://docs.chain.link/docs/solana/data-feeds-solana/
Blockchains are deterministic, that means If I take whole history of transactions which are stored on nodes, and go through them I should get the same state.
The result of any transaction must always be the same for nodes to verify it no matter where, how and when we call it
In smart contract, oracle services are used. What is blockcahin Oracle:
Blockchain oracles are entities that connect blockchains to external systems, thereby enabling smart contracts to execute based upon inputs and outputs from the real world. Oracles provide a way for the decentralized Web 3.0 ecosystem to access existing data sources, legacy systems, and advanced computations.