pub struct GasNetworkClient { /* private fields */ }Implementations§
Source§impl GasNetworkClient
impl GasNetworkClient
pub fn new(api_key: String) -> Result<Self>
pub async fn get_gas_prices(&self, chain: Chain) -> Result<GasPriceResponse>
pub async fn get_base_fee_estimates( &self, chain: Chain, ) -> Result<BaseFeeResponse>
pub async fn get_gas_distribution( &self, chain: Chain, ) -> Result<DistributionResponse>
pub async fn get_oracle_data(&self, chain_id: u64) -> Result<OraclePayload>
pub async fn get_next_block_estimate( &self, chain: Chain, confidence_level: Option<u8>, ) -> Result<GasPriceEstimate>
pub fn supported_chains() -> Vec<Chain>
pub fn chains_supporting_base_fee() -> Vec<Chain>
pub fn chains_supporting_distribution() -> Vec<Chain>
Trait Implementations§
Source§impl Clone for GasNetworkClient
impl Clone for GasNetworkClient
Source§fn clone(&self) -> GasNetworkClient
fn clone(&self) -> GasNetworkClient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GasNetworkClient
impl !RefUnwindSafe for GasNetworkClient
impl Send for GasNetworkClient
impl Sync for GasNetworkClient
impl Unpin for GasNetworkClient
impl !UnwindSafe for GasNetworkClient
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