Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: DualSignal on November 13, 2013, 12:55:56 PM



Title: Get Hex transaction from blockchain.info
Post by: DualSignal on November 13, 2013, 12:55:56 PM
How do you get the raw transaction in Hex format, from a transaction that is unconfirmed, and I didn't make, but appears on http://blockchain.info in a format that allows it to be passed into http://blockchain.info/pushtx when it is dropped from all miners memory pools.


Title: Re: Get Hex transaction from nodes
Post by: dserrano5 on November 13, 2013, 01:08:24 PM
How do you get the raw transaction in Hex format, from a transaction that is unconfirmed, and I didn't make, but appears on http://blockchain.info in a format that allows it to be passed into http://blockchain.info/pushtx when it is dropped from all miners memory pools.

Subject line says "from nodes", is that a requirement? blockchain.info returns the raw transaction if you append '?format=hex' to the URL of a transaction, e.g.:

https://blockchain.info/tx/9021b49d445c719106c95d561b9c3fac7bcb3650db67684a9226cd7fa1e1c1a0?format=hex


Title: Re: Get Hex transaction from blockchain.info
Post by: DualSignal on November 13, 2013, 01:35:06 PM
Your answer is just what I was looking for. I have updated the topic as a result.


Title: Re: Get Hex transaction from blockchain.info
Post by: Amitabh S on November 13, 2013, 05:50:17 PM
How do you get the raw transaction in Hex format, from a transaction that is unconfirmed, and I didn't make, but appears on http://blockchain.info in a format that allows it to be passed into http://blockchain.info/pushtx when it is dropped from all miners memory pools.

Although you got the answer, just my two mBTC...
If the transaction got dropped, there is probably a reason for it (maybe no fee). If you know the reason and if you can, create a new transaction that has a higher chance of acceptance rather than push the same one. The same one could likely get dropped again.