aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-03-31 21:14:49 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-04-01 02:21:26 +0800
commitdfda38ae1bcb5c09f25867af84c5f8831ae2abae (patch)
treeb74440b196f286fc98b9d7ac79f43f4514f674b7
parent91336ce42b1616ee8af39d5b2be9c96f097d375f (diff)
downloaddexon-solidity-dfda38ae1bcb5c09f25867af84c5f8831ae2abae.tar.gz
dexon-solidity-dfda38ae1bcb5c09f25867af84c5f8831ae2abae.tar.zst
dexon-solidity-dfda38ae1bcb5c09f25867af84c5f8831ae2abae.zip
eth_protocolVersion
-rw-r--r--webthreestubclient.h10
1 files changed, 10 insertions, 0 deletions
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;