/// <summary> /// WARNING!!! BitSkins stop support CryptoAPI! This api call can work not correct! /// Allows you to retrieve your account's permanent Bitcoin deposit address. /// Any funds sent to this address are credited to BitSkins at the current conversion rate. /// Conversion rates are locked in when the Bitcoin network broadcasts your transaction. /// </summary> /// <returns>Account's permanent Bitcoin deposit address.</returns> public static BitcoinDepositAddress GetBitcoinDepositAddress() { string urlRequest = GetUrlRequest(); string result = Server.ServerRequest.RequestServer(urlRequest); BitcoinDepositAddress bitcoinDepositAddress = ReadBitcoinDepositAddress(result); return(bitcoinDepositAddress); }
private static BitcoinDepositAddress ReadBitcoinDepositAddress(string result) { dynamic responseServerD = JsonConvert.DeserializeObject(result); dynamic dataD = responseServerD.data; BitcoinDepositAddress bitcoinDepositAddress = null; if (dataD != null) { string address = dataD.address ?? null; double?minimumAcceptableDepositAmount = dataD.minimum_acceptable_deposit_amount ?? null; bitcoinDepositAddress = new BitcoinDepositAddress(address, minimumAcceptableDepositAmount); } return(bitcoinDepositAddress); }