Kagome
Polkadot Runtime Engine in C++17
kagome::api::system::request::Chain Class Referencefinal

Get the chain's type. Given as a string identifier. More...

#include <chain.hpp>

Collaboration diagram for kagome::api::system::request::Chain:

Public Member Functions

 Chain (const Chain &)=delete
 
Chainoperator= (const Chain &)=delete
 
 Chain (Chain &&)=default
 
Chainoperator= (Chain &&)=default
 
 Chain (std::shared_ptr< SystemApi > api)
 
 ~Chain ()=default
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
outcome::result< std::string > execute ()
 

Private Attributes

std::shared_ptr< SystemApiapi_
 

Detailed Description

Get the chain's type. Given as a string identifier.

See also
https://github.com/w3f/PSPs/blob/psp-rpc-api/psp-002.md#system_chain

Definition at line 24 of file chain.hpp.

Constructor & Destructor Documentation

kagome::api::system::request::Chain::Chain ( const Chain )
delete
kagome::api::system::request::Chain::Chain ( Chain &&  )
default
kagome::api::system::request::Chain::Chain ( std::shared_ptr< SystemApi api)
explicit

Definition at line 14 of file chain.cpp.

kagome::api::system::request::Chain::~Chain ( )
default

Member Function Documentation

outcome::result< std::string > kagome::api::system::request::Chain::execute ( )

Definition at line 26 of file chain.cpp.

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

Definition at line 18 of file chain.cpp.

Chain& kagome::api::system::request::Chain::operator= ( const Chain )
delete
Chain& kagome::api::system::request::Chain::operator= ( Chain &&  )
default

Member Data Documentation

std::shared_ptr<SystemApi> kagome::api::system::request::Chain::api_
private

Definition at line 40 of file chain.hpp.


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