You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rpcwallet.cpp
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1893,4 +1893,36 @@ Value settxfee(const Array& params, bool fHelp)
1893
1893
returntrue;
1894
1894
}
1895
1895
1896
+
Value getwalletinfo(const Array& params, boolfHelp)
1897
+
{
1898
+
if (fHelp || params.size() != 0)
1899
+
throwruntime_error(
1900
+
"getwalletinfo\n"
1901
+
"Returns an object containing various wallet state info.\n"
1902
+
"\nResult:\n"
1903
+
"{\n"
1904
+
"\"walletversion\": xxxxx, (numeric) the wallet version\n"
1905
+
"\"balance\": xxxxxxx, (numeric) the total bitcoin balance of the wallet\n"
1906
+
"\"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\n"
1907
+
"\"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
1908
+
"\"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
1909
+
"\"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"
0 commit comments