Bitcoin Forum
May 04, 2024, 03:56:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: change tx id  (Read 1248 times)
leen93 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
April 08, 2015, 05:30:08 PM
 #1

Hi!
I want to change the tx id when i do a transaction (or at least have the ability to check it before i send the transaction)
What's the easiest way to do this? I tried it in blockchain.info and at advanced it gave a hash in the confirmation stage but it seems it's not the tx id. Can someone help me how to do this?
1714795006
Hero Member
*
Offline Offline

Posts: 1714795006

View Profile Personal Message (Offline)

Ignore
1714795006
Reply with quote  #2

1714795006
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 08, 2015, 05:33:15 PM
 #2

Hi!
I want to change the tx id when i do a transaction (or at least have the ability to check it before i send the transaction)
What's the easiest way to do this? I tried it in blockchain.info and at advanced it gave a hash in the confirmation stage but it seems it's not the tx id. Can someone help me how to do this?

Create a raw transaction[1] with bitcoin core, but dont broadcast it.


[1] https://bitcoin.org/en/developer-examples#simple-raw-transaction

Im not really here, its just your imagination.
leen93 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
April 08, 2015, 05:35:29 PM
 #3

i don't have that and i guess it'll take me a while to download the full blockchain
any options to do it faster or should i just start downloading?  Cheesy
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 08, 2015, 05:38:46 PM
 #4

i don't have that and i guess it'll take me a while to download the full blockchain
any options to do it faster or should i just start downloading?  Cheesy

You dont need to download the blockchain to create a raw TX. I could create a raw transaction for any inputs on the blockchain, I just cant sign it. The only thing that requires a copy of the blockchain is "listunspend" you can replace that step by just looking up the tx id and the position of the output on a blockexplorer. You could also do the broadcasting externally[1] and thus keep bitcoin core offline the entire time. The only thing you would need is the private key(s) to sign the TX.


[1] https://en.bitcoin.it/wiki/Transaction_broadcasting

Im not really here, its just your imagination.
leen93 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
April 08, 2015, 05:42:42 PM
 #5

i don't have that and i guess it'll take me a while to download the full blockchain
any options to do it faster or should i just start downloading?  Cheesy

You dont need to download the blockchain to create a raw TX. I could create a raw transaction for any inputs on the blockchain, I just cant sign it. The only thing that requires a copy of the blockchain is "listunspend" you can replace that step by just looking up the tx id and the position of the output on a blockexplorer. You could also do the broadcasting externally[1] and thus keep bitcoin core offline the entire time. The only thing you would need is the private key(s) to sign the TX.


[1] https://en.bitcoin.it/wiki/Transaction_broadcasting
ok, i'm a bitcoin noob, but in the end i want to sign the transaction, so where should i do this then?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 08, 2015, 08:05:20 PM
 #6

i don't have that and i guess it'll take me a while to download the full blockchain
any options to do it faster or should i just start downloading?  Cheesy

You dont need to download the blockchain to create a raw TX. I could create a raw transaction for any inputs on the blockchain, I just cant sign it. The only thing that requires a copy of the blockchain is "listunspend" you can replace that step by just looking up the tx id and the position of the output on a blockexplorer. You could also do the broadcasting externally[1] and thus keep bitcoin core offline the entire time. The only thing you would need is the private key(s) to sign the TX.


[1] https://en.bitcoin.it/wiki/Transaction_broadcasting
ok, i'm a bitcoin noob, but in the end i want to sign the transaction, so where should i do this then?

This is not actually noob level youd probably have to advance a bit. When in doubt use testcoins or regtest mode[1]. The signing would be done within bitcoin core, thus you need your private key there. AFAIK there is no way to create a raw transaction with bitcoin core and sign it with bc.i. You can use bc.i to push it once its signed though.

[1] https://bitcoin.org/en/developer-examples#regtest-mode

Im not really here, its just your imagination.
1000000
Full Member
***
Offline Offline

Activity: 151
Merit: 100



View Profile
April 08, 2015, 08:33:36 PM
 #7

If you don't want to use Bitcoin Core, try this:


Now you have the txid and can decide if you want to push it or build a new raw transaction.

“The Times 03/Jan/2009 Chancellor on brink of second bailout for banks”
Taras
Legendary
*
Offline Offline

Activity: 1386
Merit: 1053


Please do not PM me loan requests!


View Profile WWW
April 08, 2015, 09:07:55 PM
 #8

Why exactly do you want to do this?

Like block hashes, it's impossible to get whatever hash you want, but having a mathematically low hash is proof that a lot of work has been done.
leen93 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
April 09, 2015, 10:16:23 AM
 #9

If you don't want to use Bitcoin Core, try this:


Now you have the txid and can decide if you want to push it or build a new raw transaction.
ok how do i build this raw transaction? Smiley
samson
Legendary
*
Offline Offline

Activity: 2097
Merit: 1068


View Profile
April 09, 2015, 10:41:50 AM
 #10

If you don't want to use Bitcoin Core, try this:


Now you have the txid and can decide if you want to push it or build a new raw transaction.
ok how do i build this raw transaction? Smiley

You're going to need to do a whole lot of learning before you should meddle with raw transactions.

https://bitcoin.org/en/developer-examples#complex-raw-transaction
Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
April 09, 2015, 11:32:56 AM
 #11

Hi!
I want to change the tx id when i do a transaction (or at least have the ability to check it before i send the transaction)
What's the easiest way to do this? I tried it in blockchain.info and at advanced it gave a hash in the confirmation stage but it seems it's not the tx id. Can someone help me how to do this?

Create a raw transaction[1] with bitcoin core, but dont broadcast it.


[1] https://bitcoin.org/en/developer-examples#simple-raw-transaction
Was reading one time about it, very hard to understand, still don't get it. Good luck topic author Smiley
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
April 09, 2015, 04:25:44 PM
 #12

Hi!
I want to change the tx id when i do a transaction (or at least have the ability to check it before i send the transaction)
What's the easiest way to do this? I tried it in blockchain.info and at advanced it gave a hash in the confirmation stage but it seems it's not the tx id. Can someone help me how to do this?

Create a raw transaction[1] with bitcoin core, but dont broadcast it.


[1] https://bitcoin.org/en/developer-examples#simple-raw-transaction
Was reading one time about it, very hard to understand, still don't get it. Good luck topic author Smiley

I had problems understand as well, but than I took a few hours and tried it on the testnet. Made some mistakes, now it seems simple. I think its something thats best understood by doing it. Testnet or regtest (did not use that yet) is perfect for that as you dont have to play with real bitcoin.

Im not really here, its just your imagination.
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
April 09, 2015, 06:39:12 PM
Last edit: April 09, 2015, 06:58:43 PM by Muhammed Zakir
 #13

If you don't want to use Bitcoin Core, try this:


Now you have the txid and can decide if you want to push it or build a new raw transaction.
ok how do i build this raw transaction? Smiley

If you are using Brainwallet.github.io, he has mentioned the steps but a bit more detailed one:

• Go to https://blockchain.info/unspent?address=yourbitcoinaddress or https://blockexplorer.com/q/mytransactions/yourbitcoinaddress.
• Copy all the contents(hold Ctrl and press 'a' and then hold ctrl and press 'c')
• Open Brainwallet.github.io/#tx[1] and turn off internet.
• Put private key in "Private key"(first) field and click cancel when a popup comes.
• Click "Edit History" under it and paste the content you copied earlier and in the expanded field.

If you do this successfully, you can see total Bitcoins available in your address in "BTC" field right to "Source Address"(second) field.

• Now enter the address you want to send the Bitcoins to in "Destination Address"(fourth) field and enter the amount in the next field.

Optional: If you want to send Bitcoins to more than one address, you can click "+" button and add appropriate address and amount in it/them.

Optional: Check the size of transaction in "JSON Transaction"(seventh) field and and if it is higher than 1000, change fee to 0.0002BTC and click "Re-sign".

• Now you can see some alpha-numerical characters in field "Raw Transaction"(eighth), it is the raw transaction of that transaction.

Congratulations, you just created a raw transaction!

[1] It is better to download it. Older version is verified by other persons than the new one. So I recommend downloading the previous version.

Edit: Fixed typo.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!