feat: Add system_chainType to legacy rpcs (#2116)

* feat: Add system_chainType to legacy rpcs

* Test response
This commit is contained in:
Tarik Gul
2025-11-10 07:18:29 -05:00
committed by GitHub
parent 4157ce08a0
commit 2904b84ff5
3 changed files with 20 additions and 0 deletions
+5
View File
@@ -126,6 +126,11 @@ impl<T: RpcConfig> LegacyRpcMethods<T> {
self.client.request("system_version", rpc_params![]).await
}
/// Fetch system chain type
pub async fn system_chain_type(&self) -> Result<String, Error> {
self.client.request("system_chainType", rpc_params![]).await
}
/// Fetch system properties
pub async fn system_properties(&self) -> Result<SystemProperties, Error> {
self.client