mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 06:41:02 +00:00
feat: Add system_chainType to legacy rpcs (#2116)
* feat: Add system_chainType to legacy rpcs * Test response
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user