[#GetScriptForMultisig]
= GetScriptForMultisig
:mrdocs:

Generate a multisig script&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CScript.adoc[CScript]
GetScriptForMultisig(
    int nRequired,
    std::vector&lt;CPubKey&gt; const& keys);
----

== Return Value

A bare multisig script for the given keys and threshold&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nRequired*
| The number of signatures required to spend&period;
| *keys*
| The public keys that may sign&period;
|===


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