reth_provider

Trait AccountReader

pub trait AccountReader: Send + Sync {
    // Required method
    fn basic_account(
        &self,
        address: Address,
    ) -> Result<Option<Account>, ProviderError>;
}
Expand description

Account reader

Required Methods§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

Get basic account information.

Returns None if the account doesn’t exist.

Implementations on Foreign Types§

§

impl AccountReader for StateProviderTest

§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

§

impl<'a, T> AccountReader for &'a T
where T: 'a + AccountReader + ?Sized, &'a T: Send + Sync,

§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

§

impl<N> AccountReader for MemoryOverlayStateProviderRef<'_, N>
where N: NodePrimitives,

§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

§

impl<T> AccountReader for Box<T>
where T: AccountReader + ?Sized, Box<T>: Send + Sync,

§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

§

impl<T> AccountReader for Arc<T>
where T: AccountReader + ?Sized, Arc<T>: Send + Sync,

§

fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>

Implementors§