6 #ifndef KAGOME_CORE_API_SERVICE_SYSTEM_REQUESTS_CHAIN_TYPE_HPP 7 #define KAGOME_CORE_API_SERVICE_SYSTEM_REQUESTS_CHAIN_TYPE_HPP 9 #include <jsonrpc-lean/request.h> 30 explicit ChainType(std::shared_ptr<SystemApi> api);
33 outcome::result<void>
init(
const jsonrpc::Request::Parameters ¶ms);
35 outcome::result<std::string>
execute();
38 std::shared_ptr<SystemApi>
api_;
43 #endif // KAGOME_CORE_API_SERVICE_SYSTEM_REQUESTS_CHAIN_TYPE_HPP Get the chain's type. Given as a string identifier.
ChainType & operator=(const ChainType &)=delete
outcome::result< void > init(const jsonrpc::Request::Parameters ¶ms)
std::shared_ptr< SystemApi > api_
ChainType(const ChainType &)=delete
outcome::result< std::string > execute()