<p>Every transaction input consists of a number of fields:</p>

<ul>
<li>The txid of the transaction whose output is being spent.</li>
<li>The index of the output being spent (also called vout).</li>
<li>The <code>scriptSig</code>, or unlocking script.</li>
<li>The sequence number.</li>
<li>(SegWit inputs only) The <code>scriptWitness</code>.</li>
</ul>

<p>The first two (txid, vout) are called the outpoint.</p>

CC BY-SA 4.0
2018-05-31T08:30:06.967Z
Thank you, but how get info of input input?
Временный Аккаунт 
CC BY-SA 4.0
2018-05-31T14:50:14.690Z
By looking it up. Find the transaction with that txid, and look at its output number vout.
Pieter Wuille
CC BY-SA 4.0
2018-05-30T22:34:52.247Z
2018-05-30T22:34:52.247Z
Pieter Wuille
<p>I'm from Ukraine and do not know much English, sorry. I'm not understand where in transaction keep outpoint.</p>

<p>Please give me example or manual how get outpoint from input.</p>

CC BY-SA 4.0
2018-05-31T06:33:46.060Z
The developer pages of bitcoin might be a first step: https://bitcoin.org/en/developer-reference#term-raw-format, and then there is also the wonderful book from Andreas „Mastering Bitcoin“, which is also online available...
pebwindkraft
<transactions><transaction-input>
How get outpoint from txIn
Временный Аккаунт 
# How get outpoint from txIn

(Asked by: username_0 on 2018-05-30)

I'm from Ukraine and do not know much English, sorry. I'm not understand where in transaction keep outpoint.

Please give me example or manual how get outpoint from input.

**Tags:** transactions, transaction-input

> **Comments:**
> **username_1**: The developer pages of bitcoin might be a first step: https://bitcoin.org/en/developer-reference#term-raw-format, and then there is also the wonderful book from Andreas „Mastering Bitcoin“, which is also online available...  

---

## 1 answers

### Answer by username_2 on 2018-05-30. Score: 3

Every transaction input consists of a number of fields:

* The txid of the transaction whose output is being spent.
* The index of the output being spent (also called vout).
* The `scriptSig`, or unlocking script.
* The sequence number.
* (SegWit inputs only) The `scriptWitness`.

The first two (txid, vout) are called the outpoint.

> **Comments:**
> **username_0**: Thank you, but how get info of input input?  
> **username_2**: By looking it up. Find the transaction with that txid, and look at its output number vout.  

---

