Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. const TX = require('./transactionBuilder.js')
  2.  
  3. input1 = TX.createInput(100);
  4. input2 = TX.createInput(150);
  5. input3 = TX.createInput(20);
  6.  
  7. output1 = TX.createOutput(270);
  8.  
  9. inputlist = [input1, input2, input3]
  10. outputlist = [output1]
  11.  
  12. transaction = TX.createTx(inputlist,outputlist);
  13.  
  14. transaction.input.forEach(e => {
  15. console.log(e);
  16. });
  17.  
  18. transaction.output.forEach(e => {
  19. console.log(e);
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement