<p>According to <a href="https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki" rel="nofollow noreferrer">BIP 125</a>:</p>

<blockquote>
  <p>A transaction is considered to have opted in to allowing replacement of itself if any of its inputs have an nSequence number less than (0xffffffff - 1).</p>
</blockquote>

CC BY-SA 4.0
2020-05-22T17:28:55.913Z
2020-05-22T17:28:55.913Z
Pieter Wuille
<p>I noticed that the sequence field is used to signal opt-in RBF. I would think that signaling RBF applies to the full transaction rather than particular inputs.</p>

<p>If my transaction has two inputs, and I signal opt-in RBF on one of these inputs, am I still signaling that my transaction might be replaced? Or do I need to signal it for both inputs? Is it valid to signal RBF on one input but not another? Does the sequence field need to match for all inputs in the transaction?</p>

<replace-by-fee><sequence>
Can inputs to a transaction have different values for sequence?
deezy
# Can inputs to a transaction have different values for sequence?

(Asked by: username_0 on 2020-05-22)

I noticed that the sequence field is used to signal opt-in RBF. I would think that signaling RBF applies to the full transaction rather than particular inputs.

If my transaction has two inputs, and I signal opt-in RBF on one of these inputs, am I still signaling that my transaction might be replaced? Or do I need to signal it for both inputs? Is it valid to signal RBF on one input but not another? Does the sequence field need to match for all inputs in the transaction?

**Tags:** replace-by-fee, sequence


---

## 1 answers

### Answer by username_1 on 2020-05-22. Score: 2 | Accepted answer

According to [BIP 125](https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki):

> A transaction is considered to have opted in to allowing replacement of itself if any of its inputs have an nSequence number less than (0xffffffff - 1).


---

