aboutsummaryrefslogtreecommitdiffstats
path: root/webthreestubclient.h
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-18 01:05:41 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-18 01:05:41 +0800
commitcf3c22e06fd454891bfce044a8361149d39763ba (patch)
treed39d2262c566bb4a0facfd0b6fcc1c93c48c4a08 /webthreestubclient.h
parent44103be9b0963e1394b8db4172bdc59c0f1a0eda (diff)
downloaddexon-solidity-cf3c22e06fd454891bfce044a8361149d39763ba.tar.gz
dexon-solidity-cf3c22e06fd454891bfce044a8361149d39763ba.tar.zst
dexon-solidity-cf3c22e06fd454891bfce044a8361149d39763ba.zip
JSON-RPC transactionCount && uncleCount, fixed #1027
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r--webthreestubclient.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h
index 02f5b5e4..540ffb13 100644
--- a/webthreestubclient.h
+++ b/webthreestubclient.h
@@ -183,6 +183,46 @@ class WebThreeStubClient : public jsonrpc::Client
else
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
}
+ double eth_transactionCountByHash(const std::string& param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+ Json::Value result = this->CallMethod("eth_transactionCountByHash",p);
+ if (result.isDouble())
+ return result.asDouble();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+ }
+ double eth_transactionCountByNumber(int param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+ Json::Value result = this->CallMethod("eth_transactionCountByNumber",p);
+ if (result.isDouble())
+ return result.asDouble();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+ }
+ double eth_uncleCountByHash(const std::string& param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+ Json::Value result = this->CallMethod("eth_uncleCountByHash",p);
+ if (result.isDouble())
+ return result.asDouble();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+ }
+ double eth_uncleCountByNumber(int param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+ Json::Value result = this->CallMethod("eth_uncleCountByNumber",p);
+ if (result.isDouble())
+ return result.asDouble();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+ }
std::string eth_codeAt(const std::string& param1) throw (jsonrpc::JsonRpcException)
{
Json::Value p;