13 const jsonrpc::Request::Parameters ¶ms) {
14 if (!params.empty()) {
15 throw jsonrpc::InvalidParametersFault(
"Method should not have params");
18 return outcome::success();
22 OUTCOME_TRY(methods,
api_->methods());
24 result.
methods = std::move(methods);
outcome::result< void > init(const jsonrpc::Request::Parameters ¶ms)
std::shared_ptr< RpcApi > api_
outcome::result< primitives::RpcMethods > execute()
Methods methods
A set of methods names as strings.