Skip to main content
13 events
when toggle format what by license comment
Apr 13, 2017 at 12:47 history edited CommunityBot
replaced http://bitcoin.stackexchange.com/ with https://bitcoin.stackexchange.com/
Dec 27, 2016 at 16:50 comment added Nick ODell @ClickUpvote It's got to be converted from hex to raw bytes. stackoverflow.com/questions/8890174/…
Dec 27, 2016 at 10:29 comment added Click Upvote So e.g, blockchain.info/tx/… , that can be saved as a .bin file and passed on to Transaction as in your example code? Or does anything further need to be done to the hex data?
Dec 27, 2016 at 1:48 comment added Nick ODell @ClickUpvote You should be able to request the webpage https://blockchain.info/tx/<txid here>?format=hex to get a hex encoded version. Other API's have something similar.
Dec 26, 2016 at 23:59 comment added Click Upvote Is it possible to download the binary data of those txns from blockchain.info or another method, without having to traverse the chain looking for it?
Dec 26, 2016 at 17:16 comment added Click Upvote Does input.getOutput.getHash refer to the txn id and getIndex refer to the vout of the output of that txn? P.S thanks a bunch, I've been trying for a few days to get answers to these qs, you're the first person who has been able to answer them. :)
Dec 26, 2016 at 17:12 vote accept Click Upvote
Dec 26, 2016 at 16:53 comment added Nick ODell @ClickUpvote 1) That's possible. You might mean "which addresses owned this Bitcoin before" or "which addresses actually signed this." First can be answered by looking at prev scriptPubKey, second requires prev scriptPubKey and current scriptSig. 2) P2PKH/P2SH 3) tx.getInput(vin).getOutpoint() followed by getHash or getIndex. PR) Cool! It would be nice to see that in bitcoinj. PS) I would make separate questions. There's a 600 character limit on commen
Dec 26, 2016 at 16:04 comment added Click Upvote Would it be better if I created a new question for each of these?
Dec 26, 2016 at 16:00 comment added Click Upvote I saw your answer at bitcoin.stackexchange.com/questions/35456/… which answers my first question. Remaining questions: 1) I'm assuming that the sender address of multi-sig txns cannot be retrieved? 2) Do you happen to know the hashes of txns using P2PKH and P2SH so I can test my parsing of them? 3) How can I retrieve the txId and vout of inputs thru Bitcoinj?. If I get this working, I'll submit this as a PR to bitcoinj. Thanks.
Dec 26, 2016 at 12:13 comment added Click Upvote Thanks, very helpful. How do I know if an output is P2PK, P2PKH, or P2SH? And, do these 3 formats cover all the possible formats that it can be in? Also, how would I know if its a mining fee without an address? Lastly, to get the txid of inputs with Bitcoinj, would I use the input.getParentTransaction method?
Dec 26, 2016 at 7:45 history edited Nick ODell CC BY-SA 3.0
added 59 characters in body
Dec 26, 2016 at 7:38 history answered Nick ODell CC BY-SA 3.0