aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webthreestubclient.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h
index 4898e75e..6beee5bb 100644
--- a/webthreestubclient.h
+++ b/webthreestubclient.h
@@ -19,6 +19,18 @@ class WebThreeStubClient
delete this->client;
}
+ std::string account() throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p = Json::nullValue;
+ Json::Value result = this->client->CallMethod("account",p);
+ if (result.isString())
+ return result.asString();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
Json::Value accounts() throw (jsonrpc::JsonRpcException)
{
Json::Value p;