Trait account_state::state::StateInfo[][src]

pub trait StateInfo {
    fn nonce(&self, a: &Address) -> TrieResult<U256>;
fn balance(&self, a: &Address) -> TrieResult<U256>;
fn storage_at(&self, address: &Address, key: &H256) -> TrieResult<H256>;
fn code(&self, a: &Address) -> TrieResult<Option<Arc<Bytes>>>; }

Provides subset of State methods to query state information

Required methods

fn nonce(&self, a: &Address) -> TrieResult<U256>[src]

Get the nonce of account a.

fn balance(&self, a: &Address) -> TrieResult<U256>[src]

Get the balance of account a.

fn storage_at(&self, address: &Address, key: &H256) -> TrieResult<H256>[src]

Mutate storage of account address so that it is value for key.

fn code(&self, a: &Address) -> TrieResult<Option<Arc<Bytes>>>[src]

Get accounts’ code.

Loading content...

Implementors

impl<B: Backend> StateInfo for State<B>[src]

Loading content...