Struct ethers_providers::FeeHistory [−][src]
pub struct FeeHistory {
pub base_fee_per_gas: Vec<U256>,
pub gas_used_ratio: Vec<f64>,
pub oldest_block: U256,
pub reward: Vec<Vec<U256>>,
}
Fields
base_fee_per_gas: Vec<U256>
gas_used_ratio: Vec<f64>
oldest_block: U256
oldestBlock is returned as an unsigned integer up to geth v1.10.6. From geth v1.10.7, this has been updated to return in the hex encoded form. The custom deserializer allows backward compatibility for those clients not running v1.10.7 yet.
reward: Vec<Vec<U256>>
Trait Implementations
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 RefUnwindSafe for FeeHistory
impl Send for FeeHistory
impl Sync for FeeHistory
impl Unpin for FeeHistory
impl UnwindSafe for FeeHistory
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more