Created
June 9, 2015 09:39
-
-
Save williamcotton/94609c7a1f88d11ef21b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById("create-transaction").addEventListener("click", function(event) { | |
newTx = wallet.createTx(bitstoreDepositAddress, 100000, 1000, address); | |
newTxJSON = JSON.stringify({ | |
inputCount: newTx.ins.length, | |
outputCount: newTx.outs.length, | |
txHash: newTx.getId() | |
}, null, 4); | |
document.getElementById("new-tx-json").innerHTML = newTxJSON; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment