Is there any way to ask
tezos-node to tell me the contents of the block it would produce if it were the selected baker for the current round?
tezos-node there's a function that makes the next block - is this function exposed in the RPC interface by any chance?
I'm specifically interested in the operations that are likely to be included in the next block, and their ordering, without waiting on another baker to publish it.
Technically the selected block producer has total discretion over what goes into the next block, but in practice everyone is just running Octez, so I think the block proposed by my own
tezos-node should be close enough, assuming I can get it.
Context: I'm wondering if I can make something like tzflow.com, but with a nice animation of the block coming together. To make this I need intermediate representations of the block, e.g. the candidate block 59 seconds before publication, 58 seconds, ..., 1 second, and then show the next block.
Right now, my best solution would be to look at the mempool and do some hacky reasoning 😩
Edit: Clarified that I want to know the operations included in the next block.