I have a transactional function that can only be called every few blocks, and I would like to create a view function that returns the number of blocks until the transactional function can be called again, in other words, current block minus block number of the last time the transactional function was called (which I keep track of in my contract state).
Is it possible to access the block.number inside a view function or can I only access it in a transactional function?