[#node-BlockAssembler-2constructor] = xref:node.adoc[node]::xref:node/BlockAssembler.adoc[BlockAssembler]::BlockAssembler :relfileprefix: ../../ :mrdocs: Construct a block assembler for a given chainstate and mempool. == Synopsis Declared in `<node/miner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit BlockAssembler( xref:Chainstate.adoc[Chainstate]& chainstate, xref:CTxMemPool.adoc[CTxMemPool] const* mempool, xref:node/BlockCreateOptions.adoc[BlockCreateOptions] create_options); ---- == Parameters [cols="1,4"] |=== | Name| Description | *chainstate* | The chainstate to build the block on top of. | *mempool* | The mempool to draw transactions from, or nullptr for an empty block. | *create_options* | Options controlling block‐template creation. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#