Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: veleten on April 05, 2017, 04:29:40 PM



Title: How to create a raw transaction from TX ID onlline?
Post by: veleten on April 05, 2017, 04:29:40 PM
I wonder is there an online  tool that allows you to create a raw transaction while knowing only tx id?
basically,enter tx id-get a raw transaction to be pushed
useful when there is no core client installed and/or you don't have enough time or knowledge to do it


Title: Re: How to create a raw transaction from TX ID onlline?
Post by: achow101 on April 05, 2017, 05:01:41 PM
You can get the raw transaction for a txid if the transaction has already been created. However, it does not work the other way around; you cannot make up a txid and make a transaction out of that.


Title: Re: How to create a raw transaction from TX ID onlline?
Post by: DannyHamilton on April 05, 2017, 05:10:29 PM
You can get the raw transaction for a txid if the transaction has already been created. However, it does not work the other way around; you cannot make up a txid and make a transaction out of that.

However, if someone is running a node on the bitcoin network, and they choose to store every unconfirmed transaction they ever receive, indexed by transaction ID, then they could provide a service that would allow you to retrieve the transaction from their database if you know the txid.

If the transaction was not well propagated, then it is possible that their node would never have seen it in the first place, in which case they would not be able to provide it to you.

Most block explorers provide this service, but they drop the transactions when they get old.


Title: Re: How to create a raw transaction from TX ID onlline?
Post by: newIndia on April 05, 2017, 06:50:51 PM
I wonder is there an online  tool that allows you to create a raw transaction while knowing only tx id?
basically,enter tx id-get a raw transaction to be pushed
useful when there is no core client installed and/or you don't have enough time or knowledge to do it


Tx: https://btc.com/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

RawTx: https://blockchain.info/rawtx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

^^Is this what u r looking for?


Title: Re: How to create a raw transaction from TX ID onlline?
Post by: veleten on April 06, 2017, 12:37:49 AM
I wonder is there an online  tool that allows you to create a raw transaction while knowing only tx id?
basically,enter tx id-get a raw transaction to be pushed
useful when there is no core client installed and/or you don't have enough time or knowledge to do it


Tx: https://btc.com/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

RawTx: https://blockchain.info/rawtx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

^^Is this what u r looking for?

yes,thank you and thank you the posters above
I was wondering if rebroadcatsing a transaction with a low mempool presence could speed the confirmations up,as more nodes would be able to see it
obviously there is no direct correlation and it can't be measured,but sometimes I get transactions like that (especially when blockchain.info online wallet is used)
and I thought creating raw and pushing it would not hurt
 


Title: Re: How to create a raw transaction from TX ID onlline?
Post by: elbandi on April 06, 2017, 02:56:16 PM
https://coinb.in/#newTransaction



Title: Re: How to create a raw transaction from TX ID onlline?
Post by: Coding Enthusiast on April 06, 2017, 03:14:24 PM
rebroadcatsing a transaction with a low mempool presence could speed the confirmations up
When you broadcast a transaction you send it to the network, which means for example you send it to Node_1 (which you are connected to or push tx to) and if that client accepts your tx, it becomes a part of its inventory (has the tx in its mempool).
then Node_1 sends your tx to everyone that asks for its inventory or connects to Node_1.
So if Node_2 and Node_3 are connected to Node_1, they now have your tx too. (total 3 nodes).
Then they give it to Node_4, 5, 6,... and in a short time all the network has your tx.

However as I mentioned in the start, that Node has to accept your tx. Sometimes they reject it because for example it has low fee, it is a double spend, ... so your "tx mempool presence" goes down.

You can actually try it next time to get how long it takes for your tx to propagate through bitcoin network (it is a couple of seconds most of the times). Use your wallet to broadcast the tx and then copy the rawTx and push it in any of these services, you will see that by the time you copy and past and click push they all have your tx and give you an error indicating it already exists.
https://blockchain.info/pushtx
https://live.blockcypher.com/btc/pushtx/