[#PSBTInput] = PSBTInput :mrdocs: A structure for PSBTs which contain per‐input information == Synopsis Declared in `<psbt.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class PSBTInput; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:PSBTInput/2constructor-08.adoc[`PSBTInput`] [.small]#[constructor]# | Constructors | xref:PSBTInput/FillSignatureData.adoc[`FillSignatureData`] | Populate signature data from this input's fields. | xref:PSBTInput/FromSignatureData.adoc[`FromSignatureData`] | Copy relevant fields from the given signature data into this input. | xref:PSBTInput/GetOutPoint.adoc[`GetOutPoint`] | Return the outpoint this input spends. | xref:PSBTInput/GetUTXO.adoc[`GetUTXO`] | Retrieves the UTXO for this input | xref:PSBTInput/GetVersion.adoc[`GetVersion`] | Return the PSBT version of this input. | xref:PSBTInput/HasSignatures.adoc[`HasSignatures`] | Report whether this input carries any signatures. | xref:PSBTInput/Merge.adoc[`Merge`] | Merge another input's fields into this one. | xref:PSBTInput/Serialize.adoc[`Serialize`] | Serialize this input to a stream. | xref:PSBTInput/Unserialize.adoc[`Unserialize`] | Deserialize this input from a stream. | xref:PSBTInput/operator_eq.adoc[`operator==`] | Compare two inputs for equality field by field. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:PSBTInput/final_script_sig.adoc[`final_script_sig`] | The finalized scriptSig for this input. | xref:PSBTInput/final_script_witness.adoc[`final_script_witness`] | The finalized script witness for this input. | xref:PSBTInput/hash160_preimages.adoc[`hash160_preimages`] | HASH160 preimages keyed by their hash. | xref:PSBTInput/hash256_preimages.adoc[`hash256_preimages`] | HASH256 preimages keyed by their hash. | xref:PSBTInput/hd_keypaths.adoc[`hd_keypaths`] | BIP32 derivation paths keyed by public key. | xref:PSBTInput/height_locktime.adoc[`height_locktime`] | The required height‐based locktime for this input (PSBTv2). | xref:PSBTInput/m_musig2_partial_sigs.adoc[`m_musig2_partial_sigs`] | MuSig2 partial signatures; keyed by aggregate pubkey and script leaf hash, valued by participant pubkey to partial signature. | xref:PSBTInput/m_musig2_participants.adoc[`m_musig2_participants`] | MuSig2 participant public keys keyed by aggregate public key. | xref:PSBTInput/m_musig2_pubnonces.adoc[`m_musig2_pubnonces`] | MuSig2 public nonces; keyed by aggregate pubkey and script leaf hash, valued by participant pubkey to pubnonce. | xref:PSBTInput/m_proprietary.adoc[`m_proprietary`] | Proprietary key‐value records. | xref:PSBTInput/m_tap_bip32_paths.adoc[`m_tap_bip32_paths`] | Taproot BIP32 derivation paths keyed by x‐only public key. | xref:PSBTInput/m_tap_internal_key.adoc[`m_tap_internal_key`] | Taproot internal key. | xref:PSBTInput/m_tap_key_sig.adoc[`m_tap_key_sig`] | Taproot key‐path signature. | xref:PSBTInput/m_tap_merkle_root.adoc[`m_tap_merkle_root`] | Taproot merkle root. | xref:PSBTInput/m_tap_script_sigs.adoc[`m_tap_script_sigs`] | Taproot script‐path signatures keyed by output key and leaf hash. | xref:PSBTInput/m_tap_scripts.adoc[`m_tap_scripts`] | Taproot leaf scripts keyed by control block and leaf version. | xref:PSBTInput/non_witness_utxo.adoc[`non_witness_utxo`] | The full previous transaction for a non‐witness UTXO. | xref:PSBTInput/partial_sigs.adoc[`partial_sigs`] | Partial signatures keyed by key id. | xref:PSBTInput/prev_out.adoc[`prev_out`] | The previous output index spent by this input (PSBTv2). | xref:PSBTInput/prev_txid.adoc[`prev_txid`] | The previous transaction id spent by this input (PSBTv2). | xref:PSBTInput/redeem_script.adoc[`redeem_script`] | The redeem script for a P2SH input. | xref:PSBTInput/ripemd160_preimages.adoc[`ripemd160_preimages`] | RIPEMD160 preimages keyed by their hash. | xref:PSBTInput/sequence.adoc[`sequence`] | The input sequence number (PSBTv2). | xref:PSBTInput/sha256_preimages.adoc[`sha256_preimages`] | SHA256 preimages keyed by their hash. | xref:PSBTInput/sighash_type.adoc[`sighash_type`] | The sighash type requested for this input. | xref:PSBTInput/time_locktime.adoc[`time_locktime`] | The required time‐based locktime for this input (PSBTv2). | xref:PSBTInput/unknown.adoc[`unknown`] | Unknown key‐value pairs preserved across round‐trips. | xref:PSBTInput/witness_script.adoc[`witness_script`] | The witness script for a P2WSH input. | xref:PSBTInput/witness_utxo.adoc[`witness_utxo`] | The spent output for a witness UTXO. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:PSBTInputSigned.adoc[`PSBTInputSigned`] | Checks whether a PSBTInput is already signed by checking for non‐null finalized fields. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#