-1

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?

Abdel Hana
  • 81
  • 2
  • 8

3 Answers3

1

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).

Netwave
  • 40,134
  • 6
  • 50
  • 93
  • Hey. If you haven't already done so, please commit to the Solana Stackexchange. area51.stackexchange.com/proposals/126615/solana You could greatly help us reach our goal! – Jacob Creech Jun 14 '22 at 21:54
1

No. calling external links on chain, requires oracle services such as Chainlink

which doesn't seem to be available on solana, as of now.

Abi Ji
  • 184
  • 1
  • 4
0

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.

Yilmaz
  • 35,338
  • 10
  • 157
  • 202
  • Hey. If you haven't already done so, please commit to the Solana Stackexchange. area51.stackexchange.com/proposals/126615/solana You could greatly help us reach our goal! – Jacob Creech Jun 14 '22 at 21:55