Skip to content

Instantly share code, notes, and snippets.

@williamcotton
Created June 9, 2015 09:39
Show Gist options
  • Save williamcotton/94609c7a1f88d11ef21b to your computer and use it in GitHub Desktop.
Save williamcotton/94609c7a1f88d11ef21b to your computer and use it in GitHub Desktop.
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