Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
Join us in building a kind, collaborative learning community via our updated
Code of Conduct.
No, its not possible the EVM is pretty isolated. Alternative way is to watch the blockchain with a web3.js script and notify your contract. Of course this is a potential security hole.
The opcodes of the EVM do only have limited access to the current block.