Is it possible to give an expiration time to a Bitcoin transaction so that after a definite time, it can no longer be mined?

1 Answer 1


No, bitcoin transactions that stop being valid after a certain point in time are not possible

  • Out of curiosity, are there proposed opcodes such as OP_PUSHTXDATA from Johnson Lan which allow for an expiration mechanism? There is no timestamp on the transaction, so specifically OP_PUSHTXDATA wouldn't allow to construct an expiration mechanism. Instead, this hypothetical op_code that would enable expiration would need the ability to push the header height to the stack ... anything such proposals so far?
    – James C.
    Jan 26, 2019 at 12:57

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.