pub struct CreateOnChainTransactionRequest {
pub destinations: Option<Vec<CreateOnChainTransactionRequestDestination>>,
pub feerate: Option<f32>,
pub proceed_with_payjoin: Option<bool>,
pub proceed_with_broadcast: Option<bool>,
pub no_change: Option<bool>,
pub rbf: Option<bool>,
pub exclude_unconfirmed: Option<bool>,
pub selected_inputs: Option<Vec<String>>,
}Fields§
§destinations: Option<Vec<CreateOnChainTransactionRequestDestination>>What and where to send money
feerate: Option<f32>Transaction fee.
proceed_with_payjoin: Option<bool>Whether to attempt to do a BIP78 payjoin if one of the destinations is a BIP21 with payjoin enabled
proceed_with_broadcast: Option<bool>Whether to broadcast the transaction after creating it or to simply return the transaction in hex format.
no_change: Option<bool>Whether to send all the spent coins to the destinations (THIS CAN COST YOU SIGNIFICANT AMOUNTS OF MONEY, LEAVE FALSE UNLESS YOU KNOW WHAT YOU ARE DOING).
rbf: Option<bool>Whether to enable RBF for the transaction. Leave blank to have it random (beneficial to privacy)
exclude_unconfirmed: Option<bool>Whether to exclude unconfirmed UTXOs from the transaction.
selected_inputs: Option<Vec<String>>Restrict the creation of the transactions from the outpoints provided ONLY (coin selection)
Implementations§
Trait Implementations§
Source§impl Clone for CreateOnChainTransactionRequest
impl Clone for CreateOnChainTransactionRequest
Source§fn clone(&self) -> CreateOnChainTransactionRequest
fn clone(&self) -> CreateOnChainTransactionRequest
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 Default for CreateOnChainTransactionRequest
impl Default for CreateOnChainTransactionRequest
Source§fn default() -> CreateOnChainTransactionRequest
fn default() -> CreateOnChainTransactionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateOnChainTransactionRequest
impl<'de> Deserialize<'de> for CreateOnChainTransactionRequest
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 CreateOnChainTransactionRequest
impl PartialEq for CreateOnChainTransactionRequest
Source§fn eq(&self, other: &CreateOnChainTransactionRequest) -> bool
fn eq(&self, other: &CreateOnChainTransactionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateOnChainTransactionRequest
Auto Trait Implementations§
impl Freeze for CreateOnChainTransactionRequest
impl RefUnwindSafe for CreateOnChainTransactionRequest
impl Send for CreateOnChainTransactionRequest
impl Sync for CreateOnChainTransactionRequest
impl Unpin for CreateOnChainTransactionRequest
impl UnwindSafe for CreateOnChainTransactionRequest
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