File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2447,6 +2447,7 @@ UniValue getwalletinfo(const JSONRPCRequest& request)
2447
2447
" Returns an object containing various wallet state info.\n "
2448
2448
" \n Result:\n "
2449
2449
" {\n "
2450
+ " \" walletname\" : xxxxx, (string) the wallet name\n "
2450
2451
" \" walletversion\" : xxxxx, (numeric) the wallet version\n "
2451
2452
" \" balance\" : xxxxxxx, (numeric) the total confirmed balance of the wallet in " + CURRENCY_UNIT + " \n "
2452
2453
" \" unconfirmed_balance\" : xxx, (numeric) the total unconfirmed balance of the wallet in " + CURRENCY_UNIT + " \n "
@@ -2469,6 +2470,7 @@ UniValue getwalletinfo(const JSONRPCRequest& request)
2469
2470
UniValue obj (UniValue::VOBJ);
2470
2471
2471
2472
size_t kpExternalSize = pwallet->KeypoolCountExternalKeys ();
2473
+ obj.push_back (Pair (" walletname" , pwallet->GetName ()));
2472
2474
obj.push_back (Pair (" walletversion" , pwallet->GetVersion ()));
2473
2475
obj.push_back (Pair (" balance" , ValueFromAmount (pwallet->GetBalance ())));
2474
2476
obj.push_back (Pair (" unconfirmed_balance" , ValueFromAmount (pwallet->GetUnconfirmedBalance ())));
You can’t perform that action at this time.
0 commit comments