[−][src]Struct grin_wallet_libwallet::api_impl::types::InitTxArgs
V2 Init / Send TX API Args
Fields
src_acct_name: Option<String>
The human readable account name from which to draw outputs
for the transaction, overriding whatever the active account is as set via the
set_active_account
method.
amount: u64
The amount to send, in nanogrins. (1 G = 1_000_000_000nG
)
minimum_confirmations: u64
The minimum number of confirmations an output should have in order to be included in the transaction.
max_outputs: u32
By default, the wallet selects as many inputs as possible in a
transaction, to reduce the Output set and the fees. The wallet will attempt to spend
include up to max_outputs
in a transaction, however if this is not enough to cover
the whole amount, the wallet will include more outputs. This parameter should be considered
a soft limit.
num_change_outputs: u32
The target number of change outputs to create in the transaction.
The actual number created will be num_change_outputs
+ whatever remainder is needed.
selection_strategy_is_use_all: bool
If true
, attempt to use up as many outputs as
possible to create the transaction, up the 'soft limit' of max_outputs
. This helps
to reduce the size of the UTXO set and the amount of data stored in the wallet, and
minimizes fees. This will generally result in many inputs and a large change output(s),
usually much larger than the amount being sent. If false
, the transaction will include
as many outputs as are needed to meet the amount, (and no more) starting with the smallest
value outputs.
target_slate_version: Option<u16>
Optionally set the output target slate version (acceptable
down to the minimum slate version compatible with the current. If None
the slate
is generated with the latest version.
ttl_blocks: Option<u64>
Number of blocks from current after which TX should be ignored
payment_proof_recipient_address: Option<SlatepackAddress>
If set, require a payment proof for the particular recipient
estimate_only: Option<bool>
If true, just return an estimate of the resulting slate, containing fees and amounts locked without actually locking outputs or creating the transaction. Note if this is set to 'true', the amount field in the slate will contain the total amount locked, not the provided transaction amount
late_lock: Option<bool>
EXPERIMENTAL: if flagged, create the transaction as late-locked, i.e. don't select actual inputs until just before finalization
send_args: Option<InitTxSendArgs>
Sender arguments. If present, the underlying function will also attempt to send the transaction to a destination and optionally finalize the result
Trait Implementations
impl Clone for InitTxArgs
[src]
pub fn clone(&self) -> InitTxArgs
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InitTxArgs
[src]
impl Default for InitTxArgs
[src]
pub fn default() -> InitTxArgs
[src]
impl<'de> Deserialize<'de> for InitTxArgs
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for InitTxArgs
[src]
Auto Trait Implementations
impl RefUnwindSafe for InitTxArgs
[src]
impl Send for InitTxArgs
[src]
impl Sync for InitTxArgs
[src]
impl Unpin for InitTxArgs
[src]
impl UnwindSafe for InitTxArgs
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,