Kagome
Polkadot Runtime Engine in C++17
rpc_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_RPCAPI
7 #define KAGOME_API_RPCAPI
8 
10 #include "outcome/outcome.hpp"
11 
12 namespace kagome::api {
13 
14  class RpcApi {
15  public:
16  virtual ~RpcApi() = default;
17 
18  virtual outcome::result<std::vector<std::string>> methods() const = 0;
19  };
20 
21 } // namespace kagome::api
22 
23 #endif // KAGOME_API_RPCAPI
virtual ~RpcApi()=default
virtual outcome::result< std::vector< std::string > > methods() const =0