@ -1893,4 +1893,36 @@ Value settxfee(const Array& params, bool fHelp)
@@ -1893,4 +1893,36 @@ Value settxfee(const Array& params, bool fHelp)
returntrue;
}
Valuegetwalletinfo(constArray¶ms,boolfHelp)
{
if(fHelp||params.size()!=0)
throwruntime_error(
"getwalletinfo\n"
"Returns an object containing various wallet state info.\n"
"\nResult:\n"
"{\n"
"\"walletversion\": xxxxx, (numeric) the wallet version\n"
"\"balance\": xxxxxxx, (numeric) the total bitcoin balance of the wallet\n"
"\"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\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"
"\"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"