aboutsummaryrefslogtreecommitdiffstats
path: root/webthreestubclient.h
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-02-18 02:40:47 +0800
committerGav Wood <g@ethdev.com>2015-02-18 02:40:47 +0800
commit7cf233bd9e0b70254bcce01d0f5c4a2399a3677d (patch)
treefe7a9319789da17519878b7cfd5d6d9bd92565f8 /webthreestubclient.h
parenta86ee7f01158636150591dbc16aadb629b0bfe43 (diff)
parentcf3c22e06fd454891bfce044a8361149d39763ba (diff)
downloaddexon-solidity-7cf233bd9e0b70254bcce01d0f5c4a2399a3677d.tar.gz
dexon-solidity-7cf233bd9e0b70254bcce01d0f5c4a2399a3677d.tar.zst
dexon-solidity-7cf233bd9e0b70254bcce01d0f5c4a2399a3677d.zip
Merge pull request #1080 from debris/transactionCount
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 93e101bb..ee175b05 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;