From 9bccc5c512e245af9133ea2336cc8c8b7a6cba88 Mon Sep 17 00:00:00 2001
From: oliverdorn
Date: Sat, 25 Nov 2017 00:49:16 +0100
Subject: [PATCH 01/23] Added Buttons for printing Paper Wallets
Added Buttons for printint Paper Wallets for generated Legacy- and SegWit-Adresses
---
index.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/index.html b/index.html
index 353ac493..4a3cff53 100644
--- a/index.html
+++ b/index.html
@@ -321,6 +321,8 @@ Address Options
+
+
@@ -362,6 +364,8 @@ Address Options
+
+
From b997751791a1f8d1a0f0eb4941bd95b988294e70 Mon Sep 17 00:00:00 2001
From: oliverdorn
Date: Sat, 25 Nov 2017 00:53:00 +0100
Subject: [PATCH 02/23] Added functionality for printing Paper Wallet
---
js/coinbin.js | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index c07170ad..15b77fe2 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -309,7 +309,19 @@ $(document).ready(function() {
$("#aes256passStatus").removeClass("hidden");
}
$("#newPrivKeyEnc").val(CryptoJS.AES.encrypt(coin.wif, $("#aes256pass").val())+'');
-
+ $("#newPaperwalletBtn").prop("disabled", false);
+ });
+
+ $("#newPaperwalletBtn").click(function(){
+ var paperwallet = window.open();
+ paperwallet.document.write('BTC PaperWallet
Address (Share)
'+$("#newBitcoinAddress").val()+'
Public Key
'+$("#newPubKey").val()+'
Private Key (KEEP SECRET!)
'+$("#newPrivKey").val()+'
');
+ paperwallet.document.close();
+ paperwallet.focus();
+ new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newBitcoinAddress").val(), width: 128, height: 128});
+ new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newPubKey").val(), width: 128, height: 128});
+ new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newPrivKey").val(), width: 128, height: 128});
+ paperwallet.print();
+ paperwallet.close();
});
$("#newBrainwallet").click(function(){
@@ -348,8 +360,21 @@ $(document).ready(function() {
$("#newSegWitPubKey").val(coin.pubkey);
$("#newSegWitPrivKey").val(coin.wif);
coinjs.compressed = compressed;
+ $("#newSegwitPaperwalletBtn").prop("disabled", false);
});
+ $("#newSegwitPaperwalletBtn").click(function(){
+ var paperwallet = window.open();
+ paperwallet.document.write('BTC SegWit PaperWallet
Address (Share)
'+$("#newSegWitAddress").val()+'
Public Key
'+$("#newSegWitPubKey").val()+'
Redeem Script
'+$("#newSegWitRedeemScript").val()+'
Private Key (KEEP SECRET!)
'+$("#newSegWitPrivKey").val()+'
');
+ paperwallet.document.close();
+ paperwallet.focus();
+ new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newSegWitAddress").val(), width: 128, height: 128});
+ new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newSegWitPubKey").val(), width: 128, height: 128});
+ new QRCode(paperwallet.document.getElementById("qrredeem"), {text: $("#newSegWitRedeemScript").val(), width: 128, height: 128});
+ new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newSegWitPrivKey").val(), width: 128, height: 128});
+ paperwallet.print();
+ paperwallet.close();
+ });
/* new -> multisig code */
From 87461b58b80ccac10b14a274a6a312d4b49b9975 Mon Sep 17 00:00:00 2001
From: Ivy Dong
Date: Sun, 16 Dec 2018 20:04:27 +0800
Subject: [PATCH 03/23] remove redundant quotation marks
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 323edc3b..5f387a50 100644
--- a/index.html
+++ b/index.html
@@ -609,7 +609,7 @@ Transaction Create a new transaction
(80 byte limit, 40 bytes recommended)
-
+
When using this option you may enter a hex string or address into the address field on the output tab.
From 3201550d40b1cb2228dbe2897053ffc06a1ec740 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 14:23:27 -0500
Subject: [PATCH 04/23] Add link to blockchain explorer for Chain.so (Dogecoin)
---
js/coinbin.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index 01b0cce3..34001de5 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1313,7 +1313,7 @@ $(document).ready(function() {
success: function(data) {
// console.info(JSON.stringify(data, null, 4));
if((data.status && data.data) && data.status=='success'){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid);
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
From ebfb940dd59a4213c5eb9f6cf30c77b6b3cd9117 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 14:32:49 -0500
Subject: [PATCH 05/23] Fix typo in comment
---
js/coinbin.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index 34001de5..e5c01768 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1181,7 +1181,7 @@ $(document).ready(function() {
rawSubmitDefault(this);
});
- // broadcast transaction vai coinbin (default)
+ // broadcast transaction via coinbin (default)
function rawSubmitDefault(btn){
var thisbtn = btn;
$(thisbtn).val('Please wait, loading...').attr('disabled',true);
From 5c581316fe8c3d53a2ec82143ee3d4d503321b29 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 14:39:48 -0500
Subject: [PATCH 06/23] Add link to blockchain explorer for Chain.so (Bitcoin)
---
js/coinbin.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index e5c01768..535829c5 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1253,7 +1253,7 @@ $(document).ready(function() {
},
success: function(data) {
if(data.status && data.data.txid){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+data.data.txid);
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
From 2aca9ab28d3193a18acfd74ce048fc40dbf5b7f2 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 14:46:19 -0500
Subject: [PATCH 07/23] Add link to blockchain explorer for Blockcypher.com
---
js/coinbin.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index 535829c5..b8403c84 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1281,7 +1281,7 @@ $(document).ready(function() {
},
success: function(data) {
if((data.tx) && data.tx.hash){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+data.tx.hash);
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
From fcbf25eaecbf1c6af3196984e3c4656c946dbc14 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:20:43 -0500
Subject: [PATCH 08/23] Add link to blockchain explorer for coinb.in (Bitcoin)
---
js/coinbin.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index b8403c84..c71d6821 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1196,8 +1196,7 @@ $(document).ready(function() {
success: function(data) {
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
if($(data).find("result").text()==1){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger');
- $("#rawTransactionStatus").html('txid: '+$(data).find("txid").text());
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' ');
}
From cb81362330effff884aed1fe798bfc522e796c87 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:21:39 -0500
Subject: [PATCH 09/23] Add link to blockchain explorer for Cryptoid.info
(Carboncoin)
---
js/coinbin.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index c71d6821..59ab8792 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1222,8 +1222,7 @@ $(document).ready(function() {
success: function(data) {
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
if($(data).find("result").text()==1){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger');
- $("#rawTransactionStatus").html('txid: '+$(data).find("txid").text());
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' ');
}
From 9ccd73808d34f97e0b9019363a270f28faf89c78 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:23:09 -0500
Subject: [PATCH 10/23] Capitalize TXID in success message
---
js/coinbin.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index 59ab8792..2949aff4 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1196,7 +1196,7 @@ $(document).ready(function() {
success: function(data) {
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
if($(data).find("result").text()==1){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' ');
}
@@ -1222,7 +1222,7 @@ $(document).ready(function() {
success: function(data) {
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
if($(data).find("result").text()==1){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' ');
}
@@ -1251,7 +1251,7 @@ $(document).ready(function() {
},
success: function(data) {
if(data.status && data.data.txid){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
@@ -1279,7 +1279,7 @@ $(document).ready(function() {
},
success: function(data) {
if((data.tx) && data.tx.hash){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
@@ -1311,7 +1311,7 @@ $(document).ready(function() {
success: function(data) {
// console.info(JSON.stringify(data, null, 4));
if((data.status && data.data) && data.status=='success'){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
From f088ec2e52d91d0274f8476038959e4930164525 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:28:04 -0500
Subject: [PATCH 11/23] Update sha1sum
---
sha1sum | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sha1sum b/sha1sum
index f2fd201c..f4037018 100644
--- a/sha1sum
+++ b/sha1sum
@@ -1,8 +1,8 @@
----- Version 1.4 2018.12.28 ---
+---- Version 1.4 2019.01.06 ---
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
-cea69963334927160046abfda7ca82400b34d7fc ./js/coinbin.js
+01454eccc09b5707a1373bf95bdb346705e3b32a ./js/coinbin.js
d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
@@ -31,4 +31,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s
278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff
44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf
c024021c71cba503979a859d23cbf7a88b570d82 ./README.md
-26552aac02a06e88b419539f93032de8a25e1edd ./index.html
+26552aac02a06e88b419539f93032de8a25e1edd ./index.html
\ No newline at end of file
From 2fc574dde0ea60e0c8a728ffdaea4a5c037261f9 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:34:25 -0500
Subject: [PATCH 12/23] Remove unnecessary linebreak at end
---
js/coinbin.js | 2 +-
sha1sum | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index 2949aff4..f674e39e 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -2101,4 +2101,4 @@ $(document).ready(function() {
return true;
};
-});
+});
\ No newline at end of file
diff --git a/sha1sum b/sha1sum
index f4037018..0c39ae40 100644
--- a/sha1sum
+++ b/sha1sum
@@ -2,7 +2,7 @@
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
-01454eccc09b5707a1373bf95bdb346705e3b32a ./js/coinbin.js
+23b664385edee9bed31096c5fa542dfa4c52c0c8 ./js/coinbin.js
d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
From cdf4aa105b763e527aaaaa40a3ea26566289f1b0 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Wed, 6 Feb 2019 15:43:23 -0500
Subject: [PATCH 13/23] Fix variable name in broadcast success message
---
js/coinbin.js | 2 +-
sha1sum | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/coinbin.js b/js/coinbin.js
index f674e39e..c287ddbd 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1279,7 +1279,7 @@ $(document).ready(function() {
},
success: function(data) {
if((data.tx) && data.tx.hash){
- $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer');
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.tx.hash + '
View on Blockchain Explorer');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('');
}
diff --git a/sha1sum b/sha1sum
index 0c39ae40..13a109b1 100644
--- a/sha1sum
+++ b/sha1sum
@@ -2,7 +2,7 @@
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
-23b664385edee9bed31096c5fa542dfa4c52c0c8 ./js/coinbin.js
+a61ad2055a75482f0f7478647fd9a726adfecfb9 ./js/coinbin.js
d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
From c9cfeefc86dd35df3f7f5baf5f0cc2bd780396c6 Mon Sep 17 00:00:00 2001
From: yottalogical
Date: Fri, 22 Feb 2019 18:19:35 -0500
Subject: [PATCH 14/23] Correct month in sha1sum
---
sha1sum | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sha1sum b/sha1sum
index 13a109b1..da8e2d0e 100644
--- a/sha1sum
+++ b/sha1sum
@@ -1,4 +1,4 @@
----- Version 1.4 2019.01.06 ---
+---- Version 1.4 2019.02.06 ---
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
@@ -31,4 +31,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s
278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff
44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf
c024021c71cba503979a859d23cbf7a88b570d82 ./README.md
-26552aac02a06e88b419539f93032de8a25e1edd ./index.html
\ No newline at end of file
+26552aac02a06e88b419539f93032de8a25e1edd ./index.html
From c7a0fda7e546a98670a3894b47dba43978e96cd1 Mon Sep 17 00:00:00 2001
From: Wowee0
Date: Fri, 19 Apr 2019 10:40:59 -0500
Subject: [PATCH 15/23] re-enabled Litecoin
---
index.html | 2 ++
js/coinbin.js | 47 ++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index 323edc3b..6d3f3f0f 100644
--- a/index.html
+++ b/index.html
@@ -1334,6 +1334,7 @@ Settings making coinb.in even better!
Select which network you'd like to use for key pair generation.
diff --git a/js/coinbin.js b/js/coinbin.js
index 01b0cce3..f9c67a6a 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -1037,11 +1037,13 @@ $(document).ready(function() {
$("#redeemFromAddress").removeClass('hidden').html(' Retrieved unspent inputs from address '+redeem.addr+'');
for(var i in data.data.txs){
var o = data.data.txs[i];
- var tx = ((o.txid).match(/.{1,2}/g).reverse()).join("")+'';
- var n = o.output_no;
- var script = (redeem.redeemscript==true) ? redeem.decodedRs : o.script_hex;
- var amount = o.value;
- addOutput(tx, n, script, amount);
+ var tx = ((""+o.txid).match(/.{1,2}/g).reverse()).join("")+'';
+ if(tx.match(/^[a-f0-9]+$/)){
+ var n = o.output_no;
+ var script = (redeem.redeemscript==true) ? redeem.decodedRs : o.script_hex;
+ var amount = o.value;
+ addOutput(tx, n, script, amount);
+ }
}
} else {
$("#redeemFromStatus").removeClass('hidden').html(' Unexpected error, unable to retrieve unspent outputs.');
@@ -1294,6 +1296,37 @@ $(document).ready(function() {
}
+ // broadcast transaction via chain.so for litecoin
+ function rawSubmitchainso_litecoin(thisbtn){
+ $(thisbtn).val('Please wait, loading...').attr('disabled',true);
+ $.ajax ({
+ type: "POST",
+ url: "https://chain.so/api/v2/send_tx/LTC",
+ 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('');
+ // console.error(JSON.stringify(data, null, 4));
+ },
+ success: function(data) {
+ // console.info(JSON.stringify(data, null, 4));
+ if((data.status && data.data) && data.status=='success'){
+ $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.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 chain.so for dogecoin
function rawSubmitchainso_dogecoin(thisbtn){
$(thisbtn).val('Please wait, loading...').attr('disabled',true);
@@ -1823,6 +1856,10 @@ $(document).ready(function() {
$("#rawSubmitBtn").click(function(){
rawSubmitChainso_BitcoinMainnet(this);
});
+ } else if(host=="chain.so_litecoin"){
+ $("#rawSubmitBtn").click(function(){
+ rawSubmitchainso_litecoin(this);
+ });
} else if(host=="chain.so_dogecoin"){
$("#rawSubmitBtn").click(function(){
rawSubmitchainso_dogecoin(this);
From 10aa011c6e2210d9657ce034b35fadd9f7a3aada Mon Sep 17 00:00:00 2001
From: Wowee0
Date: Sat, 20 Apr 2019 23:28:40 -0500
Subject: [PATCH 16/23] LTC SegWit (pre-bech32) address version changed from 5
to 50 (i.e. 3-addresses changed to M-addresses)
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 6d3f3f0f..ab06dd5c 100644
--- a/index.html
+++ b/index.html
@@ -1334,7 +1334,7 @@ Settings making coinb.in even better!
Select which network you'd like to use for key pair generation.