Kagome
Polkadot Runtime Engine in C++17
properties.cpp
Go to the documentation of this file.
1 
7 
9 
11 
12  outcome::result<void> Properties::init(
13  const jsonrpc::Request::Parameters &params) {
14  if (!params.empty()) {
15  throw jsonrpc::InvalidParametersFault("Method should not have params");
16  }
17  return outcome::success();
18  }
19 
20  outcome::result<std::map<std::string, std::string>> Properties::execute() {
21  return api_->getConfig()->properties();
22  }
23 
24 } // namespace kagome::api::system::request
std::shared_ptr< SystemApi > api_
Definition: properties.hpp:42
outcome::result< std::map< std::string, std::string > > execute()
Definition: properties.cpp:20
outcome::result< void > init(const jsonrpc::Request::Parameters &params)
Definition: properties.cpp:12