From dfda38ae1bcb5c09f25867af84c5f8831ae2abae Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 31 Mar 2015 15:14:49 +0200 Subject: eth_protocolVersion --- webthreestubclient.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webthreestubclient.h b/webthreestubclient.h index 4754bbbe..a460ddda 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -62,6 +62,16 @@ class WebThreeStubClient : public jsonrpc::Client else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } + std::string eth_protocolVersion() throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p = Json::nullValue; + Json::Value result = this->CallMethod("eth_protocolVersion",p); + if (result.isString()) + return result.asString(); + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + } std::string eth_coinbase() throw (jsonrpc::JsonRpcException) { Json::Value p; -- cgit v1.2.3