6

I tried to use the transaction hash, but that seems to be something different than tx_id. For example with this:

get_tx_key <my-transaction-hash>

I got an error "no tx key found for this txid".

Smart Kid
  • 6,563
  • 2
  • 36
  • 62
villabacho
  • 1,205
  • 6
  • 14

1 Answers1

7

Transaction hash, transaction id, txhash, txid, are all terms for the same thing.

When you send a transaction, the tx key will be saved in your wallet cache (assuming you have this enabled, this is the default for most wallets, but for a short time after this feature was coded, it was not the default. Use set store-tx-info 1 to enable, in case it's off).

If you remove your wallet cache, this will be removed. If you need to remove your wallet cache, and you think you may need the tx keys, you can write them down or save them in a text file). Unfortunately, the wallet cache sometimes becomes corrupt, and it will be made into an LMDB database in the near future to avoid this.

user36303
  • 34,858
  • 2
  • 57
  • 123
  • Thanks, set store-tx-info 1 did the trick. Seems that I created my wallet indeed in that short period when that wasn't default. – villabacho Aug 24 '16 at 23:33
  • What is most important: where the "tx key" are stored in the blockchain or on local computer? What will be happened with "tx key" in case of restoration from seed phrase on new computer? – Ekaterina Ivanova iceja.net Nov 03 '22 at 07:26