6 #ifndef KAGOME_GET_BLOCK_HASH_HPP 7 #define KAGOME_GET_BLOCK_HASH_HPP 9 #include <jsonrpc-lean/request.h> 21 using Param3 = std::vector<VectorParam>;
22 using Param = boost::variant<NoParameters, Param1, Param2, Param3>;
28 outcome::result<void>
init(
const jsonrpc::Request::Parameters ¶ms);
30 using ResultType = boost::variant<std::string, std::vector<std::string>>;
31 outcome::result<ResultType>
execute();
34 std::shared_ptr<ChainApi>
api_;
39 #endif // KAGOME_GET_BLOCK_HASH_HPP outcome::result< void > init(const jsonrpc::Request::Parameters ¶ms)
boost::variant< std::string, std::vector< std::string >> ResultType
std::shared_ptr< ChainApi > api_
boost::variant< Param1, Param2 > VectorParam
primitives::BlockNumber Param1
outcome::result< ResultType > execute()
boost::variant< NoParameters, Param1, Param2, Param3 > Param
std::vector< VectorParam > Param3
GetBlockhash(std::shared_ptr< ChainApi > api)