[#node-AddMerkleRootAndCoinbase] = xref:node.adoc[node]::AddMerkleRootAndCoinbase :relfileprefix: ../ :mrdocs: Insert the coinbase transaction and compute the merkle root of a block. == Synopsis Declared in `<node/miner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void AddMerkleRootAndCoinbase( xref:CBlock.adoc[CBlock]& block, xref:CTransactionRef.adoc[CTransactionRef] coinbase, uint32_t version, uint32_t timestamp, uint32_t nonce); ---- == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block to finalize. | *coinbase* | The coinbase transaction to insert. | *version* | The block version to set. | *timestamp* | The block time to set. | *nonce* | The block nonce to set. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#