`getinfo` is a general info method which shows information
from multiple sources, it doesn't belong in rpcnet.cpp or
any of the other current RPC implementation files.
@ -26,3 +26,66 @@ using namespace boost;
@@ -26,3 +26,66 @@ using namespace boost;
usingnamespaceboost::assign;
usingnamespacejson_spirit;
Valuegetinfo(constArray¶ms,boolfHelp)
{
if(fHelp||params.size()!=0)
throwruntime_error(
"getinfo\n"
"Returns an object containing various state info.\n"
"\nResult:\n"
"{\n"
"\"version\": xxxxx, (numeric) the server version\n"
"\"protocolversion\": xxxxx, (numeric) the protocol version\n"
"\"walletversion\": xxxxx, (numeric) the wallet version\n"
"\"balance\": xxxxxxx, (numeric) the total bitcoin balance of the wallet\n"
"\"blocks\": xxxxxx, (numeric) the current number of blocks processed in the server\n"
"\"timeoffset\": xxxxx, (numeric) the time offset\n"
"\"connections\": xxxxx, (numeric) the number of connections\n"
"\"proxy\": \"host:port\", (string, optional) the proxy used by the server\n"
"\"difficulty\": xxxxxx, (numeric) the current difficulty\n"
"\"testnet\": true|false, (boolean) if the server is using testnet or not\n"
"\"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
"\"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
"\"paytxfee\": x.xxxx, (numeric) the transaction fee set in btc\n"
"\"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
"\"errors\": \"...\" (string) any error messages\n"
"Returns an object containing various state info.\n"
"\nResult:\n"
"{\n"
"\"version\": xxxxx, (numeric) the server version\n"
"\"protocolversion\": xxxxx, (numeric) the protocol version\n"
"\"walletversion\": xxxxx, (numeric) the wallet version\n"
"\"balance\": xxxxxxx, (numeric) the total bitcoin balance of the wallet\n"
"\"blocks\": xxxxxx, (numeric) the current number of blocks processed in the server\n"
"\"timeoffset\": xxxxx, (numeric) the time offset\n"
"\"connections\": xxxxx, (numeric) the number of connections\n"
"\"proxy\": \"host:port\", (string, optional) the proxy used by the server\n"
"\"difficulty\": xxxxxx, (numeric) the current difficulty\n"
"\"testnet\": true|false, (boolean) if the server is using testnet or not\n"
"\"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
"\"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
"\"paytxfee\": x.xxxx, (numeric) the transaction fee set in btc\n"
"\"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
"\"errors\": \"...\" (string) any error messages\n"