From 9fa0453e47a973abdac9e1254d67b4c7919222cf Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 16 Oct 2014 17:21:26 +0200 Subject: jsonrpc offset method --- ethstubclient.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- cgit