[#PSBTInput-2constructor-09] = xref:PSBTInput.adoc[PSBTInput]::PSBTInput :relfileprefix: ../ :mrdocs: Construct an input for the given PSBT version and previous output. == Synopsis Declared in `<psbt.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit PSBTInput( uint32_t psbt_version, xref:Txid.adoc[Txid] const& prev_txid, uint32_t prev_out, std::optional<uint32_t> sequence = std::nullopt); ---- == Parameters [cols="1,4"] |=== | Name| Description | *psbt_version* | The PSBT version (0 or 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]#