feat: Add system_chainType to legacy rpcs (#2116)

* feat: Add system_chainType to legacy rpcs

* Test response
This commit is contained in:
Tarik Gul authored and GitHub committed 2025-11-10 12:18:29 +00:00
1 parent 4157ce08a0
commit 2904b84ff5
3 files changed
+20

No files matched your search

+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