Trait ethcore::state::StateInfo
[−]
[src]
pub trait StateInfo { fn nonce(&self, a: &Address) -> Result<U256>; fn balance(&self, a: &Address) -> Result<U256>; fn storage_at(&self, address: &Address, key: &H256) -> Result<H256>; fn code(&self, a: &Address) -> Result<Option<Arc<Bytes>>>; }
Provides subset of State
methods to query state information
Required Methods
fn nonce(&self, a: &Address) -> Result<U256>
Get the nonce of account a
.
fn balance(&self, a: &Address) -> Result<U256>
Get the balance of account a
.
fn storage_at(&self, address: &Address, key: &H256) -> Result<H256>
Mutate storage of account address
so that it is value
for key
.
fn code(&self, a: &Address) -> Result<Option<Arc<Bytes>>>
Get accounts' code.
Implementations on Foreign Types
impl StateInfo for ()
[src]
impl StateInfo for ()