Interesting questions. I think lookups (âcurrent block heightâ) should be possible (if not directly, then indirectly), but soon weâll be able to find out experimentally and before that itâs best to ask @rubensayshi.
you can get the block height (and timestamp) in a contract, the way the example EVM contracts that desire similar functionality (ie; a crowdfund) work is that the contract is âpingedâ by executing a method and then the contract has stored the last block height when it ran and it loops from there onwards.
though it could be an interesting feature to create a contract that runs every block and pays gas from XCP that it owns, not sure why itâs not already in the EVM.