Skip to content

Instantly share code, notes, and snippets.

@JackTanRoo
Created August 24, 2014 04:36
Show Gist options
  • Save JackTanRoo/f4d709d081c4889fa564 to your computer and use it in GitHub Desktop.
Save JackTanRoo/f4d709d081c4889fa564 to your computer and use it in GitHub Desktop.
tx = new bitcoin.Transaction()
// Add the input (who is paying) of the form [previous transaction hash, index of the output to use]
tx.addInput("aa94ab02c182214f090e99a0d57021caffd0f195a81c24602b1028b130b63e31", 0) <---- Where do i get the previous transaction hash??
// Add the output (who to pay to) of the form [payee's address, amount in satoshis]
tx.addOutput("1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK", 15000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment