[#miniscript-Node-2constructor-0a3]
= xref:miniscript.adoc[miniscript]::xref:miniscript/Node.adoc[Node]::Node
:relfileprefix: ../../
:mrdocs:

Constructs a node with keys, performing the duplicate key check&period;

== Synopsis

Declared in `&lt;script&sol;miniscript&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Ctx&gt;
Node(
    Ctx const& ctx,
    xref:miniscript/Fragment.adoc[Fragment] nt,
    std::vector&lt;Key&gt; key,
    uint32&lowbar;t val = 0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context providing the script context and key comparator&period;
| *nt*
| The fragment (node type)&period;
| *key*
| The keys&period;
| *val*
| The k value (timelock value or threshold)&period;
|===


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