[#PSBTInput-2constructor-08] = xref:PSBTInput.adoc[PSBTInput]::PSBTInput :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<psbt.h>` Construct an input by deserializing it from a stream (PSBTv2). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> explicit xref:PSBTInput/2constructor-0c.adoc[PSBTInput]( xref:deserialize_type.adoc[deserialize_type] dtag, Stream& s, uint32_t psbt_version); ---- [.small]#xref:PSBTInput/2constructor-0c.adoc[_» more..._]# Construct an input for the given PSBT version and previous output. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:PSBTInput/2constructor-09.adoc[PSBTInput]( uint32_t psbt_version, xref:Txid.adoc[Txid] const& prev_txid, uint32_t prev_out, std::optional<uint32_t> sequence = std::nullopt); ---- [.small]#xref:PSBTInput/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *dtag* | Tag selecting the deserializing constructor. | *s* | The input stream. | *psbt_version* | The PSBT version (must be 2). | *prev_txid* | The previous transaction id spent by this input. | *prev_out* | The previous output index spent by this input. | *sequence* | The optional sequence number. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#