ethereal_rust_sdk 0.1.5

Trading client for Ethereal exchange
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    apis::{
        configuration::Configuration,
        rpc_api::{rpc_controller_get_config, RpcControllerGetConfigError},
        Error,
    },
    models::RpcConfigDto,
};
pub struct RpcClient<'a> {
    pub config: &'a Configuration,
}

impl<'a> RpcClient<'a> {
    pub async fn get_config(&self) -> Result<RpcConfigDto, Error<RpcControllerGetConfigError>> {
        rpc_controller_get_config(self.config).await
    }
}