pub struct TransactionFee {
pub gas_limit: Option<String>,
pub gas_price: Option<String>,
pub max_fee: Option<String>,
pub priority_fee: Option<String>,
pub base_fee: Option<String>,
pub network_fee: Option<String>,
pub network_fee_raw: Option<String>,
pub l1_fee: Option<String>,
}Expand description
Transaction fee breakdown (all fields optional / chain-dependent).
Fields§
§gas_limit: Option<String>Gas limit (EVM).
gas_price: Option<String>Gas price in wei (legacy transactions).
max_fee: Option<String>Max fee per gas (EIP-1559).
priority_fee: Option<String>Max priority fee per gas (EIP-1559).
base_fee: Option<String>Base fee per gas (EIP-1559).
network_fee: Option<String>Total network fee in native currency.
network_fee_raw: Option<String>Raw network fee value.
l1_fee: Option<String>L1 data fee (Optimism and Base).
Trait Implementations§
Source§impl Clone for TransactionFee
impl Clone for TransactionFee
Source§fn clone(&self) -> TransactionFee
fn clone(&self) -> TransactionFee
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 TransactionFee
impl Debug for TransactionFee
Source§impl<'de> Deserialize<'de> for TransactionFee
impl<'de> Deserialize<'de> for TransactionFee
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 TransactionFee
impl RefUnwindSafe for TransactionFee
impl Send for TransactionFee
impl Sync for TransactionFee
impl Unpin for TransactionFee
impl UnsafeUnpin for TransactionFee
impl UnwindSafe for TransactionFee
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