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

Construct an input by deserializing it from a stream (PSBTv2)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
explicit
PSBTInput(
    xref:deserialize_type.adoc[deserialize&lowbar;type] dtag,
    Stream& s,
    uint32&lowbar;t psbt&lowbar;version);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dtag*
| Tag selecting the deserializing constructor&period;
| *s*
| The input stream&period;
| *psbt&lowbar;version*
| The PSBT version (must be 2)&period;
|===


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