pub struct DescriptorProcessPsbt {
pub psbt: String,
pub complete: bool,
pub hex: Option<String>,
}
Expand description
Result of JSON-RPC method descriptorprocesspsbt
.
descriptorprocesspsbt “psbt” [“”,{“desc”:“str”,“range”:n or [n, n]},…] ( “sighashtype” bip32derivs finalize )
Update all segwit inputs in a PSBT with information from output descriptors, the UTXO set or the mempool. Then, sign the inputs we are able to with information from the output descriptors.
Arguments:
- psbt (string, required) The transaction base64 string
- descriptors (json array, required) An array of either strings or objects [ “”, (string) An output descriptor { (json object) An object with an output descriptor and extra information “desc”: “str”, (string, required) An output descriptor “range”: n or [n, n], (numeric or array, optional, default=1000) Up to what index HD chains should be explored (either end or [begin, end]) }, … ]
Fields§
§psbt: String
The base64-encoded partially signed transaction.
complete: bool
If the transaction has a complete set of signatures.
hex: Option<String>
The hex-encoded network transaction if complete.
Implementations§
Source§impl DescriptorProcessPsbt
impl DescriptorProcessPsbt
Sourcepub fn into_model(
self,
) -> Result<DescriptorProcessPsbt, DescriptorProcessPsbtError>
pub fn into_model( self, ) -> Result<DescriptorProcessPsbt, DescriptorProcessPsbtError>
Converts version specific type to a version in-specific, more strongly typed type.
Trait Implementations§
Source§impl Clone for DescriptorProcessPsbt
impl Clone for DescriptorProcessPsbt
Source§fn clone(&self) -> DescriptorProcessPsbt
fn clone(&self) -> DescriptorProcessPsbt
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 DescriptorProcessPsbt
impl Debug for DescriptorProcessPsbt
Source§impl<'de> Deserialize<'de> for DescriptorProcessPsbt
impl<'de> Deserialize<'de> for DescriptorProcessPsbt
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 DescriptorProcessPsbt
impl PartialEq for DescriptorProcessPsbt
Source§impl Serialize for DescriptorProcessPsbt
impl Serialize for DescriptorProcessPsbt
impl StructuralPartialEq for DescriptorProcessPsbt
Auto Trait Implementations§
impl Freeze for DescriptorProcessPsbt
impl RefUnwindSafe for DescriptorProcessPsbt
impl Send for DescriptorProcessPsbt
impl Sync for DescriptorProcessPsbt
impl Unpin for DescriptorProcessPsbt
impl UnwindSafe for DescriptorProcessPsbt
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