diff --git a/bitaddress.org.html b/bitaddress.org.html index eee04c7..665cacb 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -6708,6 +6708,7 @@ input[type=checkbox] { position: relative; z-index: 20; } +
@@ -10049,6 +10050,24 @@ ninja.wallets.paperwallet = { document.getElementById("bulkarea").style.display = "none"; }, + // use this function to download the bulk generated addresses + // parametrs: + // returns: + // save the generated addresses as the format of (index,bitcoinAddress,privateKeyWif) + // save as file name "BitcoinKeys.csv" + download: function () { + let csvContent = "data:text/csv;charset=utf-8,"; + csvContent += document.getElementById("bulktextarea").value; + + var encodedUri = encodeURI(csvContent); + var link = document.createElement("a"); + link.setAttribute("href", encodedUri); + link.setAttribute("download", "BitcoinKeys.csv"); + document.body.appendChild(link); + + link.click(); + }, + // use this function to bulk generate addresses // rowLimit: number of Bitcoin Addresses to generate // startIndex: add this number to the row index for output purposes