Struct quorum_vault_client::FeeHistory
source · pub struct FeeHistory {
pub oldest_block: BlockNumber,
pub base_fee_per_gas: Vec<U256, Global>,
pub gas_used_ratio: Vec<f64, Global>,
pub reward: Option<Vec<Vec<U256, Global>, Global>>,
}
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, Global>
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, Global>
A vector of block gas used ratios. These are calculated as the ratio of gas used and gas limit.
reward: Option<Vec<Vec<U256, Global>, Global>>
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<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
source§impl PartialEq<FeeHistory> for FeeHistory
impl PartialEq<FeeHistory> for FeeHistory
source§fn eq(&self, other: &FeeHistory) -> bool
fn eq(&self, other: &FeeHistory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FeeHistory
impl Serialize for FeeHistory
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more