If I create a signed raw transaction with a locktime in the future, and give this raw transaction to somebody else, can they edit the locktime so that they recieve the bitcoin immediately?

For example, I have this signed raw transaction:


I have tried changing the ending to ...ac00000000 and that didn't work.

For the record, I am not trying to hack a bitcoin transaction to receive funds early. I'm just wondering if it is safe to give someone a raw transaction with a timelock.

1 Answer 1


A transaction's locktime is part of the data committed to by the transaction's signatures. If you change it, the signatures become invalid, and so the transaction becomes invalid.

If the locktime could be changed by anyone, it would be completely useless.

  • Thank you that is reassuring.
    – Cannabijoy
    Nov 8, 2022 at 16:32

Your Answer

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

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