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
Detailed fee break-down for a transaction.
Fields§
§gas_limit: Option<String>Gas limit for the transaction.
gas_price: Option<String>Gas price in wei.
max_fee: Option<String>EIP-1559 max fee per gas.
priority_fee: Option<String>EIP-1559 max priority fee per gas.
base_fee: Option<String>Base fee per gas at the time of estimation.
network_fee: Option<String>Total network fee amount.
network_fee_raw: Option<String>Total network fee in raw units.
l1_fee: Option<String>Layer-1 data fee (for L2 networks).
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 Default for TransactionFee
impl Default for TransactionFee
Source§fn default() -> TransactionFee
fn default() -> TransactionFee
Returns the “default value” for a type. Read more
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