Kagome
Polkadot Runtime Engine in C++17
kagome::api::chain::request::GetHeader Struct Referencefinal

#include <get_header.hpp>

Inheritance diagram for kagome::api::chain::request::GetHeader:
Collaboration diagram for kagome::api::chain::request::GetHeader:

Public Member Functions

 GetHeader (std::shared_ptr< ChainApi > &api)
 
outcome::result< primitives::BlockHeaderexecute () 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
 
RequestTypeoperator= (const RequestType &)=delete
 
RequestTypeoperator= (RequestType &&)=delete
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
auto getParam () -> typename std::tuple_element< I, decltype(params_)>::type &
 

Private Attributes

std::shared_ptr< ChainApiapi_
 

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
 

Detailed Description

Definition at line 13 of file get_header.hpp.

Constructor & Destructor Documentation

kagome::api::chain::request::GetHeader::GetHeader ( std::shared_ptr< ChainApi > &  api)
inlineexplicit

Definition at line 15 of file get_header.hpp.

Member Function Documentation

outcome::result<primitives::BlockHeader> kagome::api::chain::request::GetHeader::execute ( )
inlineoverridevirtual

Member Data Documentation

std::shared_ptr<ChainApi> kagome::api::chain::request::GetHeader::api_
private

Definition at line 25 of file get_header.hpp.


The documentation for this struct was generated from the following file: