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
@@ -1888,4 +1888,36 @@ Value settxfee(const Array& params, bool fHelp)
1888
1888
returntrue;
1889
1889
}
1890
1890
1891
+
Value getwalletinfo(const Array& params, boolfHelp)
1892
+
{
1893
+
if (fHelp || params.size() != 0)
1894
+
throwruntime_error(
1895
+
"getwalletinfo\n"
1896
+
"Returns an object containing various wallet state info.\n"
1897
+
"\nResult:\n"
1898
+
"{\n"
1899
+
"\"walletversion\": xxxxx, (numeric) the wallet version\n"
1900
+
"\"balance\": xxxxxxx, (numeric) the total bitcoin balance of the wallet\n"
1901
+
"\"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\n"
1902
+
"\"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
1903
+
"\"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
1904
+
"\"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