<p>Bitcoin does not yet have such a built-in capability. However, such things can actually be regulated indirectly through fee (although this is a rather &quot;rough&quot; approach based on fee estimation).</p>
<p>A lower fee will cause the transaction to be mined later, while a higher fee will cause it to be mined earlier. However, as I said, this is a rather rough approach, because nothing guarantees you that the transaction will actually be mined at the moment (block) you estimated, in the end it's all up to the miner.</p>

CC BY-SA 4.0
2023-09-19T12:27:19.700Z
2023-09-19T12:47:08.130Z
2023-09-19T12:47:08.130Z
dassd
<p>Locktime defines the earliest block number that the transaction can be added to the blockchain. Is there any way to define the latest block number that a transaction can be mined? For example, transaction cannot be mined with block height &gt; 840000.</p>

<locktime>
Is there locktime but in the other way around? (valid until block x)
Angelo
# Is there locktime but in the other way around? (valid until block x)

(Asked by: username_0 on 2023-09-19)

Locktime defines the earliest block number that the transaction can be added to the blockchain. Is there any way to define the latest block number that a transaction can be mined? For example, transaction cannot be mined with block height > 840000.

**Tags:** locktime


---

## 1 answers

### Answer by username_1 on 2023-09-19. Score: 0

Bitcoin does not yet have such a built-in capability. However, such things can actually be regulated indirectly through fee (although this is a rather "rough" approach based on fee estimation).

A lower fee will cause the transaction to be mined later, while a higher fee will cause it to be mined earlier. However, as I said, this is a rather rough approach, because nothing guarantees you that the transaction will actually be mined at the moment (block) you estimated, in the end it's all up to the miner.


---

