Skip to content

Commit 0d93aa9

Browse files
committed
Switch to blockexplorer
1 parent 200ffa5 commit 0d93aa9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ <h2>Settings <small> making coinb.in even better!</small></h2>
10871087
<p class="text-muted">Select which network you'd like to use for key pair generation.</p>
10881088
<select class="form-control" id="coinjs_coin">
10891089
<option value="bitcoin_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;coinb.in;coinb.in">Bitcoin (mainnet)</option>
1090-
<option value="bitcoin-cash_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;blockdozer.com_bitcoincash;blockdozer.com_bitcoincash">Bitcoin Cash (mainnet)</option>
1090+
<option value="bitcoin-cash_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;blockexplorer.com_bitcoincash;blockexplorer.com_bitcoincash">Bitcoin Cash (mainnet)</option>
10911091
<option value="litecoin_mainnet" rel="0x30;0xb0;0x05;0x019da462;0x019d9cfe;blockr.io_litecoin;chain.so_litecoin">Litecoin (mainnet)</option>
10921092
<option value="dogecoin_mainnet" rel="0x1e;0x9e;0x16;0x0827421e;0x089944e4;chain.so_dogecoin;chain.so_dogecoin">Dogecoin (mainnet)</option>
10931093
<option value="carboncoin_mainnet" rel="0x2f;0xaf;0x05;0x488b21e;0x488ade4;cryptoid.info_carboncoin;cryptoid.info_carboncoin">Carboncoin (mainnet)</option>
@@ -1146,7 +1146,7 @@ <h2>Settings <small> making coinb.in even better!</small></h2>
11461146
<p class="text-muted">Select the network you wish to broadcast the transaction via</p>
11471147
<select class="form-control" id="coinjs_broadcast">
11481148
<option value="coinb.in">coinb.in (Bitcoin mainnet)</option>
1149-
<option value="blockdozer.com_bitcoincash">Blockdozer.com (Bitcoin Cash Mainnet)</option>
1149+
<option value="blockexplorer.com_bitcoincash">Blockexplorer.com (Bitcoin Cash Mainnet)</option>
11501150
<option value="blockr.io_bitcoinmainnet"> Blockr.io (Bitcoin mainnet)</option>
11511151
<option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option>
11521152
<option value="blockcypher_bitcoinmainnet"> Blockcypher.com (Bitcoin mainnet)</option>
@@ -1164,7 +1164,7 @@ <h2>Settings <small> making coinb.in even better!</small></h2>
11641164
<p class="text-muted">Select the network you wish to retreive your unspent inputs from</p>
11651165
<select class="form-control" id="coinjs_utxo">
11661166
<option value="coinb.in">coinb.in (Bitcoin mainnet)</option>
1167-
<option value="blockdozer.com_bitcoincash">Blockdozer.com (Bitcoin Cash Mainnet)</option>
1167+
<option value="blockexplorer.com_bitcoincash">Blockexplorer.com (Bitcoin Cash Mainnet)</option>
11681168
<option value="blockr.io_bitcoinmainnet"> Blockr.io (Bitcoin mainnet)</option>
11691169
<option value="chain.so_litecoin"> Chain.so (Litecoin)</option>
11701170
<option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option>

js/coin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441

442442
coinjs.isBitcoinCash = function() {
443443
var host = $("#coinjs_broadcast option:selected").val();
444-
return (host == 'blockdozer.com_bitcoincash')
444+
return (host == 'blockexplorer.com_bitcoincash')
445445
}
446446

447447
/* start of hd functions, thanks bip32.org */
@@ -1199,7 +1199,7 @@
11991199
type: "GET",
12001200
cache: false,
12011201
async: false,
1202-
url: "http://blockdozer.com/insight-api/addr/"+utxo_address+"/utxo",
1202+
url: "https://bitcoincash.blockexplorer.com/api/addr/"+utxo_address+"/utxo",
12031203
dataType: "json",
12041204
error: function(data) {
12051205
alert('Couldn\'t get values for inputs. Bitcoin Cash will not sign correctly.');

js/coinbin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ $(document).ready(function() {
799799
listUnspentChainso_Dogecoin(redeem);
800800
} else if(host=='cryptoid.info_carboncoin'){
801801
listUnspentCryptoidinfo_Carboncoin(redeem);
802-
} else if(host=='blockdozer.com_bitcoincash'){
802+
} else if(host=='blockexplorer.com_bitcoincash'){
803803
listUnspentBlockdozer_bitcoincash(redeem);
804804
} else {
805805
listUnspentDefault(redeem);
@@ -1000,13 +1000,13 @@ $(document).ready(function() {
10001000

10011001
}
10021002

1003-
/* retrieve unspent data from blockdozer.com (no https available) for bitcoin cash */
1003+
/* retrieve unspent data from blockexplorer.com for bitcoin cash */
10041004
function listUnspentBlockdozer_bitcoincash(redeem) {
10051005

10061006
$.ajax ({
10071007
type: "GET",
10081008
cache: false,
1009-
url: "http://blockdozer.com/insight-api/addr/"+redeem.addr+"/utxo",
1009+
url: "https://bitcoincash.blockexplorer.com/api/addr/"+redeem.addr+"/utxo",
10101010
dataType: "json",
10111011
error: function(data) {
10121012
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpected error, unable to retrieve unspent outputs!');
@@ -1018,7 +1018,7 @@ $(document).ready(function() {
10181018
data = $.parseJSON(json);
10191019
}
10201020
if((data[0].address && data[0].txid) && data[0].address==redeem.addr){
1021-
$("#redeemFromAddress").removeClass('hidden').html('<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="http://blockdozer.com/insight/address/'+redeem.addr+'" target="_blank">'+redeem.addr+'</a>');
1021+
$("#redeemFromAddress").removeClass('hidden').html('<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="https://bitcoincash.blockexplorer.com/api/address/'+redeem.addr+'" target="_blank">'+redeem.addr+'</a>');
10221022
for(var i in data){
10231023
var o = data[i];
10241024
var tx = ((""+o.txid).match(/.{1,2}/g).reverse()).join("")+'';
@@ -1192,7 +1192,7 @@ $(document).ready(function() {
11921192
$(thisbtn).val('Please wait, loading...').attr('disabled',true);
11931193
$.ajax ({
11941194
type: "POST",
1195-
url: "http://blockdozer.com/insight-api/tx/send",
1195+
url: "https://bitcoincash.blockexplorer.com/api/tx/send",
11961196
data: {"rawtx":$("#rawTransaction").val()},
11971197
dataType: "json",
11981198
error: function(data) {
@@ -1869,7 +1869,7 @@ $(document).ready(function() {
18691869
$("#rawSubmitBtn").click(function(){
18701870
rawSubmitcryptoid_Carboncoin(this);
18711871
});
1872-
} else if(host=="blockdozer.com_bitcoincash"){
1872+
} else if(host=="blockexplorer.com_bitcoincash"){
18731873
$("#rawSubmitBtn").click(function(){
18741874
rawSubmitBlockDozer_BitcoinCash(this);
18751875
});

0 commit comments

Comments
 (0)