pub struct EvmTransaction {
pub to: String,
pub chain_id: u64,
pub value: Option<String>,
pub data: Option<String>,
pub gas: Option<String>,
pub gas_price: Option<String>,
pub max_fee_per_gas: Option<String>,
pub max_priority_fee_per_gas: Option<String>,
pub nonce: Option<u64>,
}Expand description
EVM transaction parameters used by both sign and submit endpoints.
Fields§
§to: StringDestination address.
chain_id: u64Chain ID.
value: Option<String>Value in wei (as string).
data: Option<String>Calldata (hex string starting with 0x).
gas: Option<String>Gas limit.
gas_price: Option<String>Legacy gas price in wei.
max_fee_per_gas: Option<String>EIP-1559 max fee per gas.
max_priority_fee_per_gas: Option<String>EIP-1559 priority fee.
nonce: Option<u64>Transaction nonce.
Trait Implementations§
Source§impl Clone for EvmTransaction
impl Clone for EvmTransaction
Source§fn clone(&self) -> EvmTransaction
fn clone(&self) -> EvmTransaction
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 Debug for EvmTransaction
impl Debug for EvmTransaction
Source§impl<'de> Deserialize<'de> for EvmTransaction
impl<'de> Deserialize<'de> for EvmTransaction
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
Auto Trait Implementations§
impl Freeze for EvmTransaction
impl RefUnwindSafe for EvmTransaction
impl Send for EvmTransaction
impl Sync for EvmTransaction
impl Unpin for EvmTransaction
impl UnsafeUnpin for EvmTransaction
impl UnwindSafe for EvmTransaction
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