diff --git a/core/src/main/java/org/bitcoinj/kits/BIP47AppKit.java b/core/src/main/java/org/bitcoinj/kits/BIP47AppKit.java index 15b3697e485..a393018bcde 100644 --- a/core/src/main/java/org/bitcoinj/kits/BIP47AppKit.java +++ b/core/src/main/java/org/bitcoinj/kits/BIP47AppKit.java @@ -183,7 +183,7 @@ private void grabNotificationAddressUtxos(final String cashAddr) { @Override public void run() { ArrayList txids = new ArrayList(); - String apiUrl = "http://rest.bitcoin.com/v2/address/utxo/" + cashAddr; + String apiUrl = "https://rest.bitcoin.com/v2/address/utxo/" + cashAddr; JSONObject utxosJson = getJSONObject(apiUrl); try { JSONArray utxos = utxosJson.getJSONArray("utxos"); @@ -204,7 +204,7 @@ public void run() { } private void grabTransactionAndProcessNotificationTransaction(String txid) { - String url = "http://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true"; + String url = "https://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true"; JSONObject txJson = getJSONObject(url); if(txJson != null) { diff --git a/core/src/main/java/org/bitcoinj/kits/SlpBIP47AppKit.java b/core/src/main/java/org/bitcoinj/kits/SlpBIP47AppKit.java index f04270ca8c2..c485b8938c8 100644 --- a/core/src/main/java/org/bitcoinj/kits/SlpBIP47AppKit.java +++ b/core/src/main/java/org/bitcoinj/kits/SlpBIP47AppKit.java @@ -543,7 +543,7 @@ private void grabNotificationAddressUtxos(final String cashAddr) { @Override public void run() { ArrayList txids = new ArrayList(); - String apiUrl = "http://rest.bitcoin.com/v2/address/utxo/" + cashAddr; + String apiUrl = "https://rest.bitcoin.com/v2/address/utxo/" + cashAddr; JSONObject utxosJson = getJSONObject(apiUrl); try { JSONArray utxos = utxosJson.getJSONArray("utxos"); @@ -564,7 +564,7 @@ public void run() { } private void grabTransactionAndProcessNotificationTransaction(String txid) { - String url = "http://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true"; + String url = "https://rest.bitcoin.com/v2/rawtransactions/getRawTransaction/" + txid + "?verbose=true"; JSONObject txJson = getJSONObject(url); if(txJson != null) {