[#SignetTxs-Create]
= xref:SignetTxs.adoc[SignetTxs]::Create
:relfileprefix: ../
:mrdocs:

Builds the signet to&lowbar;spend&sol;to&lowbar;sign transaction pair for a block&period;

== Synopsis

Declared in `&lt;signet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::optional&lt;SignetTxs&gt;
Create(
    xref:CBlock.adoc[CBlock] const& block,
    xref:CScript.adoc[CScript] const& challenge);
----

== Return Value

The signet transaction pair, or std&colon;&colon;nullopt if it cannot be built&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block to derive the signet transactions from&period;
| *challenge*
| The signet challenge script&period;
|===


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