Struct mintscan::Mintscan [−][src]
pub struct Mintscan { /* fields omitted */ }
Mintscan API client.
Implementations
impl Mintscan
[src]
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]
impl From<HttpsClient> for Mintscan
[src]fn from(client: HttpsClient) -> Mintscan
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Mintscan
impl !RefUnwindSafe for Mintscan
impl !UnwindSafe for Mintscan
impl !UnwindSafe for Mintscan
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,