Struct floresta_cli::rpc_types::TxIn
source · 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 getrawtransaction and getblock
Fields§
§txid: String
The txid that created this UTXO
vout: u32
The index of this UTXO inside the tx that created it
script_sig: ScriptSigJson
Unlocking script that should solve the challenge and prove ownership over that UTXO
sequence: u32
The 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 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