Implement Safe functions
ADD
HiddenWallet/HiddenWallet.API/Config.json
+{
+ "WalletFilePath": "Wallets\\Wallet.json",
+ "Network": "Main",
+ "CanSpendUnconfirmed": "False",
+ "TorHost": "127.0.0.1",
+ "TorSocksPort": "9050",
+ "TorControlPort": "9051",
+ "TorControlPortPassword": "ILoveBitcoin21"
+}
\ No newline at end of file

MODIFY
HiddenWallet/HiddenWallet.API/Properties/launchSettings.json
HiddenWallet/HiddenWallet.API/Properties/launchSettings.json
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
- "launchUrl": "api/values",
+ "launchUrl": "api/v1/wallet",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"HiddenWallet.API": {
"commandName": "Project",
"launchBrowser": true,
- "launchUrl": "api/values",
+ "launchUrl": "api/v1/wallet",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},

MODIFY
HiddenWallet/HiddenWallet.API/Startup.cs
HiddenWallet/HiddenWallet.API/Startup.cs
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
+using Microsoft.AspNetCore.Mvc;
namespace HiddenWallet.API
{

Implement Safe functions