I have installed Bitcoin Core on my laptop.
Now open bitcoin daemon and do following:
First i run getbestblockhash to get the last block hash on the Blockchain. We call this hash as BestBlockHash.
After that i run: getblock BestBlockHash 0
The daemon return huge continues hex string data, which is consist of block header and block body(which is the transactions data)
Now my question!
Is this exactly the input of the submitblock function? (which the miner who mine this block, entered this)
My purpose in asking this question is to know exactly what the input of the submitblock function looks like.
Thanks in advance,
bitcoin-cli help submitblock. I assume that one should then see a help text that points towards BIP22.