Struct evm_adapters::BlockingProvider [−][src]
pub struct BlockingProvider<M> { /* fields omitted */ }
Expand description
Blocking wrapper around an Ethers middleware, for use in synchronous contexts (powered by a tokio runtime)
Implementations
Constructs the provider. If no tokio runtime exists, it instantiates one as well.
Gets the specified block as well as the chain id concurrently.
Gets the nonce, balance and code associated with an account.
Gets the current block number.
Gets the account’s balance at the specified block.
Gets the account’s nonce at the specified block.
Gets the account’s code at the specified block.
Trait Implementations
Auto Trait Implementations
impl<M> !RefUnwindSafe for BlockingProvider<M>
impl<M> Send for BlockingProvider<M> where
M: Send,
impl<M> Sync for BlockingProvider<M> where
M: Sync,
impl<M> Unpin for BlockingProvider<M> where
M: Unpin,
impl<M> !UnwindSafe for BlockingProvider<M>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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