[#TaprootBuilder-Finalize]
= xref:TaprootBuilder.adoc[TaprootBuilder]::Finalize
:relfileprefix: ../
:mrdocs:

Finalize the construction&period; Can only be called when IsComplete() is true&period; internal&lowbar;key&period;IsFullyValid() must be true&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:TaprootBuilder.adoc[TaprootBuilder]&
Finalize(xref:XOnlyPubKey.adoc[XOnlyPubKey] const& internal&lowbar;key);
----

== Return Value

A reference to this builder for chaining&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *internal&lowbar;key*
| The BIP341 internal key to tweak with the tree&period;
|===


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