Trait ethcore::client::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>
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.
Provided Methods
fn latest_balance(&self, address: &Address) -> U256
Get address balance at the latest block's state.
Implementors
impl Balance for Clientimpl Balance for TestBlockChainClient