<p>The TXID, the transaction ID, is a hash of the serialized (non-witness) transaction whose UTXO is being spent. It gets created at the same time as the transaction does</p>

CC BY-SA 3.0
2017-09-12T04:46:25.963Z
Thanks for the answer. So what gets broadcast on network, Only TxID or both TxID and serialized entire transaction? I believe second.
ManasMi
CC BY-SA 3.0
2017-09-12T05:53:48.350Z
You only need to send the serialized transaction itself, because anyone can hash it to find the txid. But generally the txid would be sent first so the client can see if they already have it or not
meshcollider
CC BY-SA 3.0
2017-09-11T09:14:18.370Z
2017-09-11T09:14:18.370Z
meshcollider
<p>I see TxID in bitcoin transaction input as reference of the UTXO. How does TXID gets created and at which point, wallet or node?</p>

<transaction-id>
How does TXID gets created and at which point
ManasMi
# How does TXID gets created and at which point

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

I see TxID in bitcoin transaction input as reference of the UTXO. How does TXID gets created and at which point, wallet or node?

**Tags:** transaction-id


---

## 1 answers

### Answer by username_1 on 2017-09-11. Score: 2

The TXID, the transaction ID, is a hash of the serialized (non-witness) transaction whose UTXO is being spent. It gets created at the same time as the transaction does

> **Comments:**
> **username_0**: Thanks for the answer. So what gets broadcast on network, Only TxID or both TxID and serialized entire transaction? I believe second.  
> **username_1**: You only need to send the serialized transaction itself, because anyone can hash it to find the txid. But generally the txid would be sent first so the client can see if they already have it or not  

---

