<p>Yes, if a transaction input has no witness it simply puts <code>0x00</code> as its witness entry</p>

<p>EDIT: If you want to check out some raw transaction examples to see where exactly the <code>0x00</code> would be located inside the  raw transaction, you can look at examples of raw segwit transactions for segnet here: <a href="http://n.bitcoin.ninja/checktx" rel="nofollow noreferrer">http://n.bitcoin.ninja/checktx</a></p>

CC BY-SA 3.0
2017-09-15T02:58:57.827Z
2017-12-10T10:47:39.370Z
2017-12-10T10:47:39.370Z
meshcollider
<p>The right way to look at it is that every transaction input has a witness. For legacy outputs being spent, that witness is just empty.</p>

<p>So yes, mixed SegWit and legacy inputs are possible. SegWit transaction serialization will be used, and the witnesses for all legacy inputs will be empty.</p>

CC BY-SA 3.0
2017-09-15T03:06:20.593Z
2017-09-15T03:06:20.593Z
Pieter Wuille
<p>Is it possible to have partly segwit transactions? I.e. some utxos from segwit addresses and some from non-segwit addresses.</p>

<p>Asking for the situation of Bitcoin core v0.15 wallet with coins in segwit and non-segwit addresses. If you send a transaction will it use one or both address types for the transaction?</p>

<transactions><bitcoin-core><bitcoind><segregated-witness>
Segwit transaction from mixed addresses (segwit and non-segwit)
Cyrus
# Segwit transaction from mixed addresses (segwit and non-segwit)

(Asked by: username_0 on 2017-09-15)

Is it possible to have partly segwit transactions? I.e. some utxos from segwit addresses and some from non-segwit addresses.

Asking for the situation of Bitcoin core v0.15 wallet with coins in segwit and non-segwit addresses. If you send a transaction will it use one or both address types for the transaction?

**Tags:** transactions, bitcoin-core, bitcoind, segregated-witness


---

## 2 answers

### Answer by username_2 on 2017-09-15. Score: 10 | Accepted answer

The right way to look at it is that every transaction input has a witness. For legacy outputs being spent, that witness is just empty.

So yes, mixed SegWit and legacy inputs are possible. SegWit transaction serialization will be used, and the witnesses for all legacy inputs will be empty.


---

### Answer by username_1 on 2017-09-15. Score: 3

Yes, if a transaction input has no witness it simply puts `0x00` as its witness entry

EDIT: If you want to check out some raw transaction examples to see where exactly the `0x00` would be located inside the raw transaction, you can look at examples of raw segwit transactions for segnet here: <http://n.bitcoin.ninja/checktx>


---

