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);