aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-04-05 05:52:40 +0800
committerGav Wood <g@ethdev.com>2015-04-05 05:52:40 +0800
commit42ef1880271a99a69f6dcc5fbad97290baed8a2a (patch)
treefd5080ca690d77062defa786b22578e16e52bf1c
parent80dc6380d027cac39dc52653ce61e42375ae8ea1 (diff)
parentdfda38ae1bcb5c09f25867af84c5f8831ae2abae (diff)
downloaddexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar.gz
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar.bz2
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar.lz
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar.xz
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.tar.zst
dexon-solidity-42ef1880271a99a69f6dcc5fbad97290baed8a2a.zip
Merge pull request #1482 from debris/eth_version
jsonrpc eth_version method
-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;