[#PSBTInput-2constructor-09]
= xref:PSBTInput.adoc[PSBTInput]::PSBTInput
:relfileprefix: ../
:mrdocs:

Construct an input for the given PSBT version and previous output&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
PSBTInput(
    uint32&lowbar;t psbt&lowbar;version,
    xref:Txid.adoc[Txid] const& prev&lowbar;txid,
    uint32&lowbar;t prev&lowbar;out,
    std::optional&lt;uint32&lowbar;t&gt; sequence = std&colon;&colon;nullopt);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *psbt&lowbar;version*
| The PSBT version (0 or 2)&period;
| *prev&lowbar;txid*
| The previous transaction id spent by this input&period;
| *prev&lowbar;out*
| The previous output index spent by this input&period;
| *sequence*
| The optional sequence number&period;
|===


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