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".

1 Answer 1

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.

2
  • 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
    Commented Aug 24, 2016 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? Commented Nov 3, 2022 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.