Post
Topic
Board Altcoin Discussion
Re: how to change the transation id?
by
dabura667
on 20/10/2014, 11:14:46 UTC
Second, i usd createrawtransaction to creat the transation:
{
  "result": "0100000001022095d74c74d16041cab1c7a4cab5f4a56dbe982428668c891ab96f4b9f964f00000 00000ffffffff027ef9062a000000001976a91465dc2a40b96081ec8d4e846c115d21201f37276e88ace 6c21a1e000000001976a914245a83c7a236a1d223314a11f2455af7541ce6e288ac00000000",
  "error": null,
  "id": null
}

You are signing a 0x00 byte, you should be signing a utxo.

You need to input ALL the necessary info from the utxo, including the scriptpubkey from the prevout.

use the help command to learn what information is needed for createrawtransaction.

Edit: Also, I just looked at the dogechain, your vout is not 0, it's 1... this is why you got "already spent"... the first out is already spent.

Edit:
Try signing this instead:

Code:
1976a914245a83c7a236a1d223314a11f2455af7541ce6e288ac

Replaced the 00 with it here: (Edit: and I changed the vout to 1)

Code:
{
  "result": "0100000001022095d74c74d16041cab1c7a4cab5f4a56dbe982428668c891ab96f4b9f964f010000001976a914245a83c7a236a1d223314a11f2455af7541ce6e288acffffffff027ef9062a000000001976a91465dc2a40b96081ec8d4e846c115d21201f37276e88ace6c21a1e000000001976a914245a83c7a236a1d223314a11f2455af7541ce6e288ac00000000",
  "error": null,
  "id": null
}