[#DataFromTransaction]
= DataFromTransaction
:mrdocs:

Extract signature data from a transaction input, and insert it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:SignatureData.adoc[SignatureData]
DataFromTransaction(
    xref:CMutableTransaction.adoc[CMutableTransaction] const& tx,
    unsigned int nIn,
    xref:CTxOut.adoc[CTxOut] const& txout);
----

== Return Value

The signature data recovered from the input&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction the input belongs to&period;
| *nIn*
| The index of the input to read&period;
| *txout*
| The output being spent by the input&period;
|===


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