pub struct SendOptions {
pub add_to_wallet: Option<bool>,
pub fee_rate: Option<FeeRate>,
pub lock_unspents: Option<bool>,
}Expand description
Options for sending transactions with the wallet.
Used with Wallet::send to fund, sign, and optionally
broadcast a transaction via Bitcoin Core’s send RPC.
§Note
All fields are optional and will use Bitcoin Core defaults if not specified.
Fields§
§add_to_wallet: Option<bool>Add the transaction to the wallet and broadcast it. When false, send returns
the signed PSBT without broadcasting. Default is true.
fee_rate: Option<FeeRate>Fee rate in sat/vB.
lock_unspents: Option<bool>Lock the selected UTXOs. Note: send expects lock_unspents, not lockUnspents.
Trait Implementations§
Source§impl Clone for SendOptions
impl Clone for SendOptions
Source§fn clone(&self) -> SendOptions
fn clone(&self) -> SendOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendOptions
impl Debug for SendOptions
Source§impl Default for SendOptions
impl Default for SendOptions
Source§fn default() -> SendOptions
fn default() -> SendOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SendOptions
impl PartialEq for SendOptions
Source§fn eq(&self, other: &SendOptions) -> bool
fn eq(&self, other: &SendOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SendOptions
impl Serialize for SendOptions
impl StructuralPartialEq for SendOptions
Auto Trait Implementations§
impl Freeze for SendOptions
impl RefUnwindSafe for SendOptions
impl Send for SendOptions
impl Sync for SendOptions
impl Unpin for SendOptions
impl UnsafeUnpin for SendOptions
impl UnwindSafe for SendOptions
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