[#node-BlockCreateOptions-coinbase_output_script]
= xref:node.adoc[node]::xref:node/BlockCreateOptions.adoc[BlockCreateOptions]::coinbase&lowbar;output&lowbar;script
:relfileprefix: ../../
:mrdocs:

Script to put in the coinbase transaction&period; The default is an anyone&hyphen;can&hyphen;spend dummy&period;

== Synopsis

Declared in `&lt;node&sol;mining&lowbar;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CScript.adoc[CScript] coinbase&lowbar;output&lowbar;script = &lcub;CScript() &lt;&lt; OP&lowbar;TRUE&rcub;;
----

== Description

Should only be used for tests, when the default doesn&apos;t suffice&period;

Note that higher level code like the getblocktemplate RPC may omit the coinbase transaction entirely&period; It&apos;s instead constructed by pool software using fields like coinbasevalue, coinbaseaux and default&lowbar;witness&lowbar;commitment&period; This software typically also controls the payout outputs, even for solo mining&period;

The size and sigops are not checked against coinbase&lowbar;max&lowbar;additional&lowbar;weight and coinbase&lowbar;output&lowbar;max&lowbar;additional&lowbar;sigops&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
