pub struct DecodeScript {
pub asm: String,
pub hex: Option<String>,
pub type_: String,
pub required_signatures: Option<u64>,
pub addresses: Option<Vec<String>>,
pub p2sh: Option<String>,
pub segwit: Option<DecodeScriptSegwit>,
pub p2sh_segwit: Option<String>,
}Expand description
Result of JSON-RPC method decodescript.
decodescript “hexstring”
Decode a hex-encoded script.
Arguments:
- “hexstring” (string) the hex encoded script
Fields§
§asm: StringScript public key.
hex: Option<String>Hex encoded public key.
type_: StringThe output type.
required_signatures: Option<u64>The required signatures.
addresses: Option<Vec<String>>List of bitcoin addresses.
p2sh: Option<String>Address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
segwit: Option<DecodeScriptSegwit>Segwit data (see DecodeScriptSegwit for explanation).
p2sh_segwit: Option<String>Address of the P2SH script wrapping this witness redeem script
Implementations§
Source§impl DecodeScript
impl DecodeScript
Sourcepub fn into_model(self) -> Result<DecodeScript, DecodeScriptError>
pub fn into_model(self) -> Result<DecodeScript, DecodeScriptError>
Converts version specific type to a version nonspecific, more strongly typed type.
Trait Implementations§
Source§impl Clone for DecodeScript
impl Clone for DecodeScript
Source§fn clone(&self) -> DecodeScript
fn clone(&self) -> DecodeScript
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeScript
impl Debug for DecodeScript
Source§impl<'de> Deserialize<'de> for DecodeScript
impl<'de> Deserialize<'de> for DecodeScript
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
Source§impl PartialEq for DecodeScript
impl PartialEq for DecodeScript
Source§impl Serialize for DecodeScript
impl Serialize for DecodeScript
impl StructuralPartialEq for DecodeScript
Auto Trait Implementations§
impl Freeze for DecodeScript
impl RefUnwindSafe for DecodeScript
impl Send for DecodeScript
impl Sync for DecodeScript
impl Unpin for DecodeScript
impl UnwindSafe for DecodeScript
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