pub struct FeeHistory {
pub oldest_block: u64,
pub base_fee_per_gas: Vec<U256>,
pub gas_used_ratio: Vec<Figure>,
pub reward: Vec<Vec<U256>>,
}Expand description
What eth_feeHistory answers.
Fields§
§oldest_block: u64§base_fee_per_gas: Vec<U256>One per block asked for, and one more: the next block’s.
gas_used_ratio: Vec<Figure>Each block’s gas used over its limit, as the node wrote it.
reward: Vec<Vec<U256>>Per block, the tip at each percentile asked for.
Implementations§
Source§impl FeeHistory
impl FeeHistory
Sourcepub fn next_base_fee(&self) -> Option<U256>
pub fn next_base_fee(&self) -> Option<U256>
The base fee of the block after the newest one asked for.
Trait Implementations§
Source§impl Clone for FeeHistory
impl Clone for FeeHistory
Source§fn clone(&self) -> FeeHistory
fn clone(&self) -> FeeHistory
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 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<FeeHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeeHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FeeHistory
Source§impl PartialEq for FeeHistory
impl PartialEq 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.