Kagome
Polkadot Runtime Engine in C++17
kagome::api::chain::request::GetBlockhash Class Referencefinal

#include <get_block_hash.hpp>

Collaboration diagram for kagome::api::chain::request::GetBlockhash:

Classes

struct  NoParameters
 

Public Types

using ResultType = boost::variant< std::string, std::vector< std::string >>
 

Public Member Functions

 GetBlockhash (std::shared_ptr< ChainApi > api)
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
outcome::result< ResultTypeexecute ()
 

Private Types

using Param1 = primitives::BlockNumber
 
using Param2 = std::string
 
using VectorParam = boost::variant< Param1, Param2 >
 
using Param3 = std::vector< VectorParam >
 
using Param = boost::variant< NoParameters, Param1, Param2, Param3 >
 

Private Attributes

std::shared_ptr< ChainApiapi_
 
Param param_
 

Detailed Description

Definition at line 16 of file get_block_hash.hpp.


Class Documentation

struct kagome::api::chain::request::GetBlockhash::NoParameters

Definition at line 17 of file get_block_hash.hpp.

Collaboration diagram for kagome::api::chain::request::GetBlockhash::NoParameters:

Member Typedef Documentation

Definition at line 22 of file get_block_hash.hpp.

Definition at line 19 of file get_block_hash.hpp.

Definition at line 21 of file get_block_hash.hpp.

using kagome::api::chain::request::GetBlockhash::ResultType = boost::variant<std::string, std::vector<std::string>>

Definition at line 30 of file get_block_hash.hpp.

Definition at line 20 of file get_block_hash.hpp.

Constructor & Destructor Documentation

kagome::api::chain::request::GetBlockhash::GetBlockhash ( std::shared_ptr< ChainApi api)
inlineexplicit

Definition at line 25 of file get_block_hash.hpp.

Member Function Documentation

outcome::result< GetBlockhash::ResultType > kagome::api::chain::request::GetBlockhash::execute ( )

Definition at line 64 of file get_block_hash.cpp.

outcome::result< void > kagome::api::chain::request::GetBlockhash::init ( const jsonrpc::Request::Parameters &  params)

Definition at line 15 of file get_block_hash.cpp.

Member Data Documentation

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

Definition at line 34 of file get_block_hash.hpp.

Param kagome::api::chain::request::GetBlockhash::param_
private

Definition at line 35 of file get_block_hash.hpp.


The documentation for this class was generated from the following files: