pub struct FeeHistory {
pub oldest_block: BlockNumber,
pub base_fee_per_gas: Vec<U256>,
pub gas_used_ratio: Vec<f64>,
pub reward: Option<Vec<Vec<U256>>>,
}
Expand description
The fee history type returned from eth_feeHistory
call.
Fields§
§oldest_block: BlockNumber
Lowest number block of the returned range.
base_fee_per_gas: Vec<U256>
A vector of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.
gas_used_ratio: Vec<f64>
A vector of block gas used ratios. These are calculated as the ratio of gas used and gas limit.
reward: Option<Vec<Vec<U256>>>
A vector of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty. Returned only if requested.
Trait Implementations§
Source§impl Clone for FeeHistory
impl Clone for FeeHistory
Source§fn clone(&self) -> FeeHistory
fn clone(&self) -> FeeHistory
Returns a copy 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 FeeHistory
impl Debug for FeeHistory
Source§impl<'de> Deserialize<'de> for FeeHistory
impl<'de> Deserialize<'de> for FeeHistory
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
Source§impl PartialEq for FeeHistory
impl PartialEq for FeeHistory
Source§impl Serialize for FeeHistory
impl Serialize for FeeHistory
impl StructuralPartialEq for FeeHistory
Auto Trait Implementations§
impl Freeze for FeeHistory
impl RefUnwindSafe for FeeHistory
impl Send for FeeHistory
impl Sync for FeeHistory
impl Unpin for FeeHistory
impl UnwindSafe for FeeHistory
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