[#PrecomputedTransactionData-Init]
= xref:PrecomputedTransactionData.adoc[PrecomputedTransactionData]::Init
:relfileprefix: ../
:mrdocs:

Initialize this PrecomputedTransactionData with transaction data&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
void
Init(
    T const& tx,
    std::vector&lt;CTxOut&gt;&& spent&lowbar;outputs,
    bool force = false);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx* [in]
| The transaction for which data is being precomputed&period;
| *spent&lowbar;outputs* [in]
| The CTxOuts being spent, one for each tx&period;vin, in order&period;
| *force* [in]
| Whether to precompute data for all optional features, regardless of what is in the inputs (used at signing time, when the inputs aren&apos;t filled in yet)&period;
|===


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