user140597: 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,

user208: The input to submitblock is a full serialized block, encoded in hexadecimal.
Block serialization consists of:

The block header (80 bytes)
A CompactSize encoding of the number of transactions
The transactions, one by one, concatenated one after the other.


140597: <p>I have installed Bitcoin Core on my laptop.</p>
<p>Now open bitcoin daemon and do following:</p>
<p>First i run <strong>getbestblockhash</strong> to get the last block hash on the Blockchain. We call this hash as <em><strong>BestBlockHash</strong></em>.</p>
<p>After that i run:
getblock <em><strong>BestBlockHash</strong></em> 0</p>
<p>The daemon return <strong>huge continues hex string data</strong>, which is consist of <strong>block header</strong> and <strong>block body</strong>(which is the transactions data)</p>
<p><em>Now my question!</em></p>
<p>Is this exactly the <strong>input of the submitblock function</strong>? (which the miner who mine this block, entered this)</p>
<p><em>My purpose in asking this question is to know exactly what the input of the submitblock function looks like.</em></p>
<p>Thanks in advance,</p>
 208: <p>The input to <code>submitblock</code> is a full serialized block, encoded in hexadecimal.</p>
<p>Block serialization consists of:</p>
<ul>
<li>The block header (80 bytes)</li>
<li>A CompactSize encoding of the number of transactions</li>
<li>The transactions, one by one, concatenated one after the other.</li>
</ul>
