Struct mintscan::Mintscan[][src]

pub struct Mintscan { /* fields omitted */ }

Mintscan API client.

Implementations

impl Mintscan[src]

pub fn new(hostname: impl Into<String>) -> Self[src]

Create a new Mintscan client for the given API hostname (e.g. api.cosmostation.io)

pub async fn status(&self) -> Result<Status>[src]

Get /v1/status endpoint.

pub async fn validator(&self, addr: impl Into<Address>) -> Result<Validator>[src]

Get /v1/staking/validator endpoint.

Accepts a Bech32-encoded account address for the validator.

pub async fn validator_uptime(&self, addr: impl Into<Address>) -> Result<Uptime>[src]

Get /v1/staking/validator/uptime endpoint.

Accepts a Bech32-encoded account address for the validator.

Trait Implementations

impl From<HttpsClient> for Mintscan[src]

Auto Trait Implementations

impl !RefUnwindSafe for Mintscan

impl Send for Mintscan

impl Sync for Mintscan

impl Unpin for Mintscan

impl !UnwindSafe for Mintscan

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,