[#miniscript-Node-2constructor-03] = xref:miniscript.adoc[miniscript]::xref:miniscript/Node.adoc[Node]::Node :relfileprefix: ../../ :mrdocs: Constructs a leaf node with only a k value, performing the duplicate key check. == Synopsis Declared in `<script/miniscript.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Ctx> Node( Ctx const& ctx, xref:miniscript/Fragment.adoc[Fragment] nt, uint32_t val = 0); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Context providing the script context and key comparator. | *nt* | The fragment (node type). | *val* | The k value (timelock value or threshold). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#