diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-16 23:21:26 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-16 23:21:26 +0800 |
commit | 9fa0453e47a973abdac9e1254d67b4c7919222cf (patch) | |
tree | 93ce581b948adb9cd5eba6b9bb4d88261f9584ae /ethstubclient.h | |
parent | fcff4059b59143df49260812f0e3e12ee304f589 (diff) | |
download | dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.gz dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.bz2 dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.lz dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.xz dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.tar.zst dexon-solidity-9fa0453e47a973abdac9e1254d67b4c7919222cf.zip |
jsonrpc offset method
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; |