aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-16 23:21:26 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-16 23:21:26 +0800
commit9fa0453e47a973abdac9e1254d67b4c7919222cf (patch)
tree93ce581b948adb9cd5eba6b9bb4d88261f9584ae
parentfcff4059b59143df49260812f0e3e12ee304f589 (diff)
downloaddexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.gz
dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.zst
dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.zip
jsonrpc offset method
-rw-r--r--ethstubclient.h14
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;