Kagome
Polkadot Runtime Engine in C++17
|
#include <get_header.hpp>
Public Member Functions | |
GetHeader (std::shared_ptr< ChainApi > &api) | |
outcome::result< primitives::BlockHeader > | execute () override |
Public Member Functions inherited from kagome::api::details::RequestType< primitives::BlockHeader, std::optional< std::string > > | |
RequestType ()=default | |
RequestType (const RequestType &)=delete | |
RequestType (RequestType &&)=delete | |
virtual | ~RequestType ()=default |
RequestType & | operator= (const RequestType &)=delete |
RequestType & | operator= (RequestType &&)=delete |
outcome::result< void > | init (const jsonrpc::Request::Parameters ¶ms) |
auto | getParam () -> typename std::tuple_element< I, decltype(params_)>::type & |
Private Attributes | |
std::shared_ptr< ChainApi > | api_ |
Additional Inherited Members | |
Public Types inherited from kagome::api::details::RequestType< primitives::BlockHeader, std::optional< std::string > > | |
using | Params = std::tuple< ArgumentTypes... > |
using | Return = primitives::BlockHeader |
Definition at line 13 of file get_header.hpp.
|
inlineexplicit |
Definition at line 15 of file get_header.hpp.
|
inlineoverridevirtual |
Implements kagome::api::details::RequestType< primitives::BlockHeader, std::optional< std::string > >.
Definition at line 17 of file get_header.hpp.
|
private |
Definition at line 25 of file get_header.hpp.