pub trait QueryTrait<N: Network> {
// Required methods
fn current_state_root(&self) -> Result<N::StateRoot>;
fn get_state_path_for_commitment(
&self,
commitment: &Field<N>,
) -> Result<StatePath<N>>;
fn current_block_height(&self) -> Result<u32>;
}
Required Methods§
Sourcefn current_state_root(&self) -> Result<N::StateRoot>
fn current_state_root(&self) -> Result<N::StateRoot>
Returns the current state root.
Sourcefn get_state_path_for_commitment(
&self,
commitment: &Field<N>,
) -> Result<StatePath<N>>
fn get_state_path_for_commitment( &self, commitment: &Field<N>, ) -> Result<StatePath<N>>
Returns a state path for the given commitment
.
Sourcefn current_block_height(&self) -> Result<u32>
fn current_block_height(&self) -> Result<u32>
Returns the current block height