rrelayer 0.1.3

The official Rust SDK for interacting with rrelayer services - a powerful blockchain transaction relay service
Documentation
mod authentication;
pub mod http;
mod network;
mod relayer;
mod sign;
mod transaction;
pub mod types;

use std::sync::Arc;
pub use types::{ApiResult, ApiSdkError};

#[derive(Clone)]
pub struct HealthApi {
    client: Arc<HttpClient>,
}

impl HealthApi {
    pub fn new(client: Arc<HttpClient>) -> Self {
        Self { client }
    }

    pub async fn check(&self) -> ApiResult<()> {
        self.client.get_status("health").await
    }
}

pub use authentication::AuthenticationApi;
pub use network::NetworkApi;
pub use relayer::RelayerApi;
pub use sign::SignApi;
pub use transaction::TransactionApi;

use crate::api::http::HttpClient;