Trait client_traits::Balance[][src]

pub trait Balance {
    fn balance(&self, address: &Address, state: StateOrBlock) -> Option<U256>;

    fn latest_balance(&self, address: &Address) -> U256 { ... }
}

Provides balance and latest_balance methods

Required methods

fn balance(&self, address: &Address, state: StateOrBlock) -> Option<U256>[src]

Get address balance at the given block’s state.

May not return None if given BlockId::Latest. Returns None if and only if the block’s root hash has been pruned from the DB.

Loading content...

Provided methods

fn latest_balance(&self, address: &Address) -> U256[src]

Get address balance at the latest block’s state.

Loading content...

Implementors

Loading content...