Execute solidity code after each block

Hei, I am working on a project and need to execute smart contract transactions after every block. I do not want to do it through JS, rather I would like to know if there is a way that solidity itself can listen for the latest block and execute code only after a block has been mined. I have come across something called ethereum alarm clock though this seems to be a solution that relys on JavaScript. Other than that there was not much that I could find on the internet. If anyone has any insight to how I can listen for blocks with solidity I would very much appreciate it!

1 Like