multiversx_sdk_http/gateway_http_proxy/
http_network.rsuse anyhow::Result;
use multiversx_sdk::{
data::{network_config::NetworkConfig, network_economics::NetworkEconomics},
gateway::{NetworkConfigRequest, NetworkEconimicsRequest},
};
use super::GatewayHttpProxy;
impl GatewayHttpProxy {
pub async fn get_network_config(&self) -> Result<NetworkConfig> {
self.http_request(NetworkConfigRequest).await
}
pub async fn get_network_economics(&self) -> Result<NetworkEconomics> {
self.http_request(NetworkEconimicsRequest).await
}
}