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

#include <get_block.hpp>

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

Public Member Functions

 GetBlock (std::shared_ptr< ChainApi > &api)
 
outcome::result< primitives::BlockDataexecute () override
 
- Public Member Functions inherited from kagome::api::details::RequestType< primitives::BlockData, 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::BlockData, std::optional< std::string > >
using Params = std::tuple< ArgumentTypes... >
 
using Return = primitives::BlockData
 

Detailed Description

Definition at line 13 of file get_block.hpp.

Constructor & Destructor Documentation

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

Definition at line 15 of file get_block.hpp.

Member Function Documentation

outcome::result<primitives::BlockData> kagome::api::chain::request::GetBlock::execute ( )
inlineoverridevirtual

Member Data Documentation

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

Definition at line 25 of file get_block.hpp.


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