From cecf3f5de59e43088a82667caf5310d39ccb595a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 6 Jul 2019 07:34:47 -1100 Subject: [PATCH] Display wif --- src/wallet/rpcwallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 9e1cb4784..1d7768255 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -190,6 +190,7 @@ UniValue getnewaddress(const UniValue& params, bool fHelp) key.Set(&priv32[0],&priv32[32], true); CPubKey pubkey = key.GetPubKey(); CKeyID vchAddress = pubkey.GetID(); + result.push_back(Pair("wif",EncodeSecret(key))); result.push_back(Pair("address",EncodeDestination(vchAddress))); result.push_back(Pair("pubkey",HexStr(pubkey))); return(result);