pub struct Tendermint<'a> { /* private fields */ }
Implementations§
Source§impl Tendermint<'_>
impl Tendermint<'_>
pub fn create(terra: &Terra) -> Tendermint<'_>
Sourcepub async fn blocks(&self) -> Result<BlockResult>
pub async fn blocks(&self) -> Result<BlockResult>
get the latest block
Sourcepub async fn blocks_at_height(&self, height: u64) -> Result<BlockResult>
pub async fn blocks_at_height(&self, height: u64) -> Result<BlockResult>
get a block at a specific height
Sourcepub async fn validatorsets(
&self,
page: usize,
limit: usize,
) -> Result<LCDResult<ValidatorSetResult>>
pub async fn validatorsets( &self, page: usize, limit: usize, ) -> Result<LCDResult<ValidatorSetResult>>
get the latest validatorset @warn the maximum limit (at time of development is 100)
Sourcepub async fn validatorsets_full(&self) -> Result<LCDResult<ValidatorSetResult>>
pub async fn validatorsets_full(&self) -> Result<LCDResult<ValidatorSetResult>>
get the latest full validatorset
Sourcepub async fn validatorsets_full_at_height(
&self,
height: u64,
) -> Result<LCDResult<ValidatorSetResult>>
pub async fn validatorsets_full_at_height( &self, height: u64, ) -> Result<LCDResult<ValidatorSetResult>>
get the full validatorset at a certain height
Sourcepub async fn validatorsets_at_height(
&self,
height: u64,
page: usize,
limit: usize,
) -> Result<LCDResult<ValidatorSetResult>>
pub async fn validatorsets_at_height( &self, height: u64, page: usize, limit: usize, ) -> Result<LCDResult<ValidatorSetResult>>
get a validatorset at a specific height @warn the maximum limit (at time of development is 100)
Auto Trait Implementations§
impl<'a> Freeze for Tendermint<'a>
impl<'a> !RefUnwindSafe for Tendermint<'a>
impl<'a> Send for Tendermint<'a>
impl<'a> Sync for Tendermint<'a>
impl<'a> Unpin for Tendermint<'a>
impl<'a> !UnwindSafe for Tendermint<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more