hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha_cli::CliClient Class Reference

#include "client.hpp"

Collaboration diagram for iroha_cli::CliClient:
Collaboration graph

Classes

struct  Response
 

Public Types

enum  TxStatus { OK }
 

Public Member Functions

 CliClient (std::string target_ip, int port)
 
CliClient::Response< CliClient::TxStatussendTx (const shared_model::interface::Transaction &tx)
 
CliClient::Response< iroha::protocol::QueryResponse > sendQuery (const shared_model::interface::Query &query)
 
CliClient::Response< iroha::protocol::ToriiResponse > getTxStatus (std::string tx_hash)
 

Member Enumeration Documentation

Enumerator
OK 

Constructor & Destructor Documentation

iroha_cli::CliClient::CliClient ( std::string  target_ip,
int  port 
)

Member Function Documentation

CliClient::Response< iroha::protocol::ToriiResponse > iroha_cli::CliClient::getTxStatus ( std::string  tx_hash)

Here is the call graph for this function:

CliClient::Response< iroha::protocol::QueryResponse > iroha_cli::CliClient::sendQuery ( const shared_model::interface::Query query)

Send Query to Iroha Peer, i.e. target_ip:port

Parameters
query
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

CliClient::Response< CliClient::TxStatus > iroha_cli::CliClient::sendTx ( const shared_model::interface::Transaction tx)

Send Transaction to Iroha Peer, i.e. target_ip:port

Parameters
tx
Returns

Here is the call graph for this function:

Here is the caller graph for this function:


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