Struct ethers_middleware::gas_oracle::Etherscan
source · pub struct Etherscan { /* private fields */ }Expand description
A client over HTTP for the Etherscan gas tracker API
that implements the GasOracle trait
Implementations
Trait Implementations
sourceimpl GasOracle for Etherscan
impl GasOracle for Etherscan
sourcefn fetch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, GasOracleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn fetch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, GasOracleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Makes an asynchronous HTTP query to the underlying
GasOracle Read morefn estimate_eip1559_fees<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(U256, U256), GasOracleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Etherscan
impl Send for Etherscan
impl Sync for Etherscan
impl Unpin for Etherscan
impl !UnwindSafe for Etherscan
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more