Struct floresta_cli::rpc_types::ScriptPubKey
source · 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: String
A 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: String
The hex-encoded raw script
req_sigs: u32
How many signatures are required to spend this UTXO.
This field is deprecated and is here for compatibility with Core
type_: String
The type of this spk. E.g: PKH, SH, WSH, WPKH, TR, non-standard…
address: String
Encode 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 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