Kagome
Polkadot Runtime Engine in C++17
kagome::api::state::request::Call Class Referencefinal

#include <call.hpp>

Collaboration diagram for kagome::api::state::request::Call:

Public Member Functions

 Call (Call const &)=delete
 
Calloperator= (Call const &)=delete
 
 Call (Call &&)=default
 
Calloperator= (Call &&)=default
 
 Call (std::shared_ptr< StateApi > api)
 
 ~Call ()=default
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
outcome::result< common::Bufferexecute ()
 

Private Attributes

std::shared_ptr< StateApiapi_
 
std::string method_
 
common::Buffer data_
 
std::optional< primitives::BlockHashat_
 

Detailed Description

Request processor for state_call RPC: https://polkadot.js.org/docs/substrate/rpc/#callmethod-text-data-bytes-at-blockhash-bytes

Definition at line 23 of file call.hpp.

Constructor & Destructor Documentation

kagome::api::state::request::Call::Call ( Call const &  )
delete
kagome::api::state::request::Call::Call ( Call &&  )
default
kagome::api::state::request::Call::Call ( std::shared_ptr< StateApi api)
explicit

Definition at line 12 of file call.cpp.

kagome::api::state::request::Call::~Call ( )
default

Member Function Documentation

outcome::result< common::Buffer > kagome::api::state::request::Call::execute ( )

Definition at line 61 of file call.cpp.

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

Definition at line 16 of file call.cpp.

Call& kagome::api::state::request::Call::operator= ( Call const &  )
delete
Call& kagome::api::state::request::Call::operator= ( Call &&  )
default

Member Data Documentation

std::shared_ptr<StateApi> kagome::api::state::request::Call::api_
private

Definition at line 39 of file call.hpp.

std::optional<primitives::BlockHash> kagome::api::state::request::Call::at_
private

Definition at line 42 of file call.hpp.

common::Buffer kagome::api::state::request::Call::data_
private

Definition at line 41 of file call.hpp.

std::string kagome::api::state::request::Call::method_
private

Definition at line 40 of file call.hpp.


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