reth_storage_api

Trait AccountReader

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

Account reader

Required Methods§

Source

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

Get basic account information.

Returns None if the account doesn’t exist.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl<C: Send + Sync, N: NodePrimitives> AccountReader for NoopProvider<C, N>