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