diff options
Diffstat (limited to 'ethstubclient.h')
-rw-r--r-- | ethstubclient.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ethstubclient.h b/ethstubclient.h index 3989c665..b824444f 100644 --- a/ethstubclient.h +++ b/ethstubclient.h @@ -262,6 +262,20 @@ p["s"] = s; } + std::string offset(const int& o, const std::string& s) throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p["o"] = o; +p["s"] = s; + + Json::Value result = this->client->CallMethod("offset",p); + if (result.isString()) + return result.asString(); + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + + } + int peerCount() throw (jsonrpc::JsonRpcException) { Json::Value p; |