pub struct TxIn {
pub txid: String,
pub vout: u32,
pub script_sig: ScriptSigJson,
pub sequence: u32,
pub witness: Vec<String>,
}Expand description
A transaction input returned by some rpcs, like gettransaction and getblock
Fields§
§txid: StringThe txid that created this UTXO
vout: u32The index of this UTXO inside the tx that created it
script_sig: ScriptSigJsonUnlocking script that should solve the challenge and prove ownership over that UTXO
sequence: u32The nSequence field, used in relative and absolute lock-times
witness: Vec<String>A vector of witness elements for this input
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxIn
impl<'de> Deserialize<'de> for TxIn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TxIn
impl RefUnwindSafe for TxIn
impl Send for TxIn
impl Sync for TxIn
impl Unpin for TxIn
impl UnwindSafe for TxIn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more