pub struct SendOptions {
pub gas_limit: Option<u64>,
pub nonce: Option<u64>,
pub refund_address: Option<[u8; 20]>,
pub max_fee_per_gas: Option<u128>,
pub max_priority_fee_per_gas: Option<u128>,
pub value: Option<u128>,
}Expand description
Options that fine-tune how a message is sent over the transport.
All fields are optional; unset values let the transport pick sensible defaults.
§Example
use xenith_core::SendOptions;
let opts = SendOptions { gas_limit: Some(200_000), max_fee_per_gas: Some(50_000_000_000), ..Default::default() };Fields§
§gas_limit: Option<u64>Override the destination gas limit for message execution.
nonce: Option<u64>Override the nonce used by the sending contract.
refund_address: Option<[u8; 20]>Address to receive any fee refund on the source chain.
max_fee_per_gas: Option<u128>EIP-1559 maximum fee per gas in wei.
max_priority_fee_per_gas: Option<u128>EIP-1559 maximum priority fee per gas in wei.
value: Option<u128>Native token value (in wei) to attach to the transaction.
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
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