I want to call some existing code (written in Python) inside my Ethereum smart contract (written in solidity). Is it possible to do that? if so, how can we do it?
[Ethereum] Call an existing python code inside a solidity smart contract
contract-designoraclespythonsolidity
Best Answer
EVM is isolated, which means there is no I/O to the outside world. However, you could program it in the way that your python code reacts on events published on-chain. This will not give you the ACID properties of a on-chain transaction, but it can be a valid solution depending on the usecase.