pub struct CreatepsbtParams {
pub inputs: Vec<Value>,
pub outputs: Vec<Value>,
pub locktime: Option<i64>,
pub replaceable: Option<bool>,
pub version: Option<i64>,
}Expand description
Creates a transaction in the Partially Signed Transaction format. Implements the Creator role. Note that the transaction’s inputs are not signed, and it is not stored in the wallet or transmitted to the network.
Fields§
§inputs: Vec<Value>The inputs
outputs: Vec<Value>The outputs specified as key-value pairs. Each key may only appear once, i.e. there can only be one ‘data’ output, and no address may be duplicated. At least one output of either type must be specified. For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also accepted as second parameter.
locktime: Option<i64>Raw locktime. Non-0 value also locktime-activates inputs
replaceable: Option<bool>Marks this transaction as BIP125-replaceable. Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible.
version: Option<i64>Transaction version