diff --git a/index.html b/index.html
index cd35505..31d0a76 100644
--- a/index.html
+++ b/index.html
@@ -101,7 +101,7 @@
Open Source
-
Coinbin is an open source web based wallet written in javascript and released under the MIT license which means its free to use and edit.
+
Coinbin is an open source web based wallet written in javascript and released under the MIT license which means it's free to use and edit.
@@ -1005,6 +1005,7 @@
diff --git a/js/coinbin.js b/js/coinbin.js
index 49f53b1..7a150b9 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -936,6 +936,36 @@ $(document).ready(function() {
});
}
+ // broadcast transaction via blockr.io (mainnet)
+ function rawSubmitChainso_BitcoinMainnet(thisbtn){
+ $(thisbtn).val('Please wait, loading...').attr('disabled',true);
+ $.ajax ({
+ type: "POST",
+ url: "https://chain.so/api/v2/send_tx/BTC/",
+ data: {"tx_hex":$("#rawTransaction").val()},
+ dataType: "json",
+ error: function(data) {
+ var obj = $.parseJSON(data.responseText);
+ var r = ' ';
+ r += (obj.data.tx_hex) ? obj.data.tx_hex : '';
+ r = (r!='') ? r : ' Failed to broadcast'; // build response
+ $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(r).prepend('');
+ },
+ success: function(data) {
+ var obj = $.parseJSON(data.responseText);
+ if(obj.status && obj.txid){
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+obj.txid);
+ } else {
+ $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
+ }
+ },
+ complete: function(data, status) {
+ $("#rawTransactionStatus").fadeOut().fadeIn();
+ $(thisbtn).val('Submit').attr('disabled',false);
+ }
+ });
+ }
+
// broadcast transaction via blockr.io for litecoin
function rawSubmitBlockrio_litecoin(thisbtn){
$(thisbtn).val('Please wait, loading...').attr('disabled',true);
@@ -1417,6 +1447,10 @@ $(document).ready(function() {
$("#rawSubmitBtn").click(function(){
rawSubmitBlockrio_BitcoinMainnet(this);
});
+ } else if(host=="chain.so_bitcoinmainnet"){
+ $("#rawSubmitBtn").click(function(){
+ rawSubmitChainso_BitcoinMainnet(this);
+ });
} else {
$("#rawSubmitBtn").click(function(){
rawSubmitDefault(this); // revert to default
diff --git a/sha1sum b/sha1sum
index 6c32853..d14fb5c 100644
--- a/sha1sum
+++ b/sha1sum
@@ -1,9 +1,9 @@
----- Version 1.2 2016.02.25 ----
+---- Version 1.2 2016.03.15 ----
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
ca3f654f247fef67de2cf6e01c3aa80db1812e5d ./js/coin.js
-16a0cf35c7dd8cdd3ec9fb06b7b120f674fe3b88 ./js/coinbin.js
+664ee79f35a73b754725c52c14257cc781a9ef50 ./js/coinbin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js
@@ -18,6 +18,7 @@ ad038e1f39646b68ae666324ed4c2882a8c42474 ./js/qrcode.js
114089ef2a3feb6d4db4f9cabcb186d7750d5884 ./js/sha512.js
506c40035e0d22560478629434d0fea27643b77a ./js/transition.js
5f570018ed044eafd464f7e0ab1783b966224055 ./LICENCE
+255c58c17e63eb54adb3cd02b5c06224c67fc364 ./css/bootstrap-datetimepicker.min.css
ed29315e0ffb3f14382431f2724235bf67f44eb3 ./css/bootstrap.min.css
fc6b4268fbd57ad95d2b41a1d4d6866f222fbdb2 ./css/bootstrap-theme.min.css
8297b8f4d686ec6c65981077514975e06ce41812 ./css/style.css
@@ -29,4 +30,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s
278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff
44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf
48ff08f459ff55ae54e594b4ae307d1d8e6f74b3 ./README.md
-1c48c81d71751f6bf99c9c889645f747e2466ce7 ./index.html
+000c945b6fae0e7450a9bad857094374eb4e2db2 ./index.html