public async Task CreateWalletAsync(WalletInfo walletInfo) { var existingWallet = await _walletRepo.GetWhereAsync(new List <WhereClause> { new WhereClause(nameof(WalletInfo.Location), "=", walletInfo.Location, "OR"), new WhereClause(nameof(WalletInfo.Name), "=", walletInfo.Name) }); await _walletRepo.CreateAsync(walletInfo); }
public static string BuildConf(this WalletInfo info) { return($@"rpcuser={info.RpcUsername} rpcpassword={info.RpcPassword} rpcallowip=127.0.0.1"); }