<p>There are no special requirements for the sequence number in coinbase transactions. It is subject to the normal sequence number rules, but for coinbases, those largely don't matter. While it can be set to anything, miners generally just leave it as the maximum sequence number rather than using it as another nonce.</p>

CC BY-SA 4.0
2021-04-25T17:57:35.580Z
2021-04-25T17:57:35.580Z
Ava Chow
<p>The sequence number seems to be used for locking a transaction in mempool. However, the coinbase transaction is not part of the mempool and thus the sequence number does not make sense.</p>
<p>Is it just an &quot;extra nonce&quot;? Or is there any constraint on the sequence number in a coinbase transaction?</p>

<transactions><mining-theory><coinbase-transaction><sequence>
How to set the sequence number in a coinbase transaction?
Andy
# How to set the sequence number in a coinbase transaction?

(Asked by: username_0 on 2021-04-25)

The sequence number seems to be used for locking a transaction in mempool. However, the coinbase transaction is not part of the mempool and thus the sequence number does not make sense.

Is it just an "extra nonce"? Or is there any constraint on the sequence number in a coinbase transaction?

**Tags:** transactions, mining-theory, coinbase-transaction, sequence


---

## 1 answers

### Answer by username_1 on 2021-04-25. Score: 2 | Accepted answer

There are no special requirements for the sequence number in coinbase transactions. It is subject to the normal sequence number rules, but for coinbases, those largely don't matter. While it can be set to anything, miners generally just leave it as the maximum sequence number rather than using it as another nonce.


---

