pub struct PreviousTransactionOutput {
pub txid: Txid,
pub vout: u32,
pub script_pubkey: String,
pub redeem_script: Option<String>,
pub witness_script: Option<String>,
pub amount: Option<f64>,
}Expand description
Models the optional previous transaction outputs argument for the method
signrawtransactionwithwallet.
These are the outputs that this transaction depends on but may not yet be in the block chain. Widely used for One Parent One Child (1P1C) Relay in Bitcoin >28.0.
transaction outputs [ { (json object) “txid”: “hex”, (string, required) The transaction id “vout”: n, (numeric, required) The output number “scriptPubKey”: “hex”, (string, required) The output script “redeemScript”: “hex”, (string, optional) (required for P2SH) redeem script “witnessScript”: “hex”, (string, optional) (required for P2WSH or P2SH-P2WSH) witness script “amount”: amount, (numeric or string, optional) (required for Segwit inputs) the amount spent }, … ]
Fields§
§txid: TxidThe transaction id.
vout: u32The output number.
script_pubkey: StringThe output script.
redeem_script: Option<String>The redeem script.
witness_script: Option<String>The witness script.
amount: Option<f64>The amount spent.
Trait Implementations§
Source§impl Clone for PreviousTransactionOutput
impl Clone for PreviousTransactionOutput
Source§fn clone(&self) -> PreviousTransactionOutput
fn clone(&self) -> PreviousTransactionOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more