BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <cli.hpp>
Public Member Functions | |
cli (uint32_t max_depth) | |
~cli () | |
virtual variant | send_call (api_id_type api_id, string method_name, variants args=variants()) |
virtual variant | send_callback (uint64_t callback_id, variants args=variants()) |
virtual void | send_notice (uint64_t callback_id, variants args=variants()) |
void | start () |
void | stop () |
void | cancel () |
void | wait () |
void | format_result (const string &method, std::function< string(variant, const variants &)> formatter) |
virtual void | getline (const std::string &prompt, std::string &line) |
void | set_prompt (const string &prompt) |
void | set_regex_secret (const string &expr) |
Public Member Functions inherited from fc::api_connection | |
api_connection (uint32_t max_depth) | |
virtual | ~api_connection () |
template<typename T > | |
api< T > | get_remote_api (api_id_type api_id=0) |
variant | receive_call (api_id_type api_id, const string &method_name, const variants &args=variants()) const |
variant | receive_callback (uint64_t callback_id, const variants &args=variants()) const |
void | receive_notice (uint64_t callback_id, const variants &args=variants()) const |
template<typename Interface > | |
api_id_type | register_api (const Interface &a) |
template<typename Signature > | |
uint64_t | register_callback (const std::function< Signature > &cb) |
std::vector< std::string > | get_method_names (api_id_type local_api_id=0) const |
Additional Inherited Members | |
Public Attributes inherited from fc::api_connection | |
fc::signal< void()> | closed |
const uint32_t | _max_conversion_depth |
Provides a simple wrapper for RPC calls to a given interface.
|
virtual |
|
virtual |
makes calls to the remote server
Implements fc::api_connection.
Implements fc::api_connection.
Implements fc::api_connection.