[#miniscript-Node-ToScript]
= xref:miniscript.adoc[miniscript]::xref:miniscript/Node.adoc[Node]::ToScript
:relfileprefix: ../../
:mrdocs:

Builds the CScript encoding of this Miniscript expression&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Ctx&gt;
xref:CScript.adoc[CScript]
ToScript(Ctx const& ctx) const;
----

== Return Value

The CScript corresponding to this node tree&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context providing key and key&hyphen;hash byte serializations&period;
|===


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