user140597: According to this site, in the coinbase input part, What is the coinbase script and where did it come from?
It is said that this is a arbitrary data, but I don't know how this string is generated?
Just below this section, in the example, the following string is reported:
062f503253482f0472d35454085fffedf2400000f90f54696d652026204865616c74682021
Thanks for any advice,
Best regards,

user208: The miner chooses it, freely.
They can use it as an additional nonce (when the nonce is the block header overflows, the miner needs to switch to different transactions in the block to modify it further; the coinbase is an obvious place to make non-impactful, cheap, changes), or use it to publish messages.
In addition, BIP34 (active as a consensus rule since 2012) requires the coinbase scriptSig to start with the height of the block, in a particular encoding.

140597: <p>According to this <a href="https://developer.bitcoin.org/reference/transactions.html" rel="nofollow noreferrer">site</a>, in the <strong>coinbase input</strong> part, What is the <strong>coinbase script</strong> and where did it come from?</p>
<p>It is said that this is a <strong>arbitrary data</strong>, but I don't know <strong>how this string is generated</strong>?</p>
<p>Just below this section, in the example, the following string is reported:
062f503253482f0472d35454085fffedf2400000f90f54696d652026204865616c74682021</p>
<p><em>Thanks for any advice,</em></p>
<p><em>Best regards,</em></p>
 208: <p>The miner chooses it, freely.</p>
<p>They can use it as an additional nonce (when the nonce is the block header overflows, the miner needs to switch to different transactions in the block to modify it further; the coinbase is an obvious place to make non-impactful, cheap, changes), or use it to publish messages.</p>
<p>In addition, <a href="https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki" rel="nofollow noreferrer">BIP34</a> (active as a consensus rule since 2012) requires the coinbase scriptSig to start with the height of the block, in a particular encoding.</p>
