pub struct ScriptPubKey {
pub asm: String,
pub hex: String,
pub req_sigs: u32,
pub type_: String,
pub address: String,
}Expand description
The locking script inside a txout
Fields§
§asm: StringA ASM representation for this script
Assembly is a high-level representation of a lower level code. Instructions are turned into OP_XXXXX and data is hex-encoded. E.g: OP_DUP OP_HASH160 <0000000000000000000000000000000000000000> OP_EQUALVERIFY OP_CHECKSIG
hex: StringThe hex-encoded raw script
req_sigs: u32How many signatures are required to spend this UTXO.
This field is deprecated and is here for compatibility with Core
type_: StringThe type of this spk. E.g: PKH, SH, WSH, WPKH, TR, non-standard…
address: StringEncode this script using one of the standard address types, if possible
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScriptPubKey
impl<'de> Deserialize<'de> for ScriptPubKey
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 ScriptPubKey
impl RefUnwindSafe for ScriptPubKey
impl Send for ScriptPubKey
impl Sync for ScriptPubKey
impl Unpin for ScriptPubKey
impl UnwindSafe for ScriptPubKey
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