How get outpoint from txIn

0

1

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.

Временный Аккаунт

Posted 2018-05-30T19:32:51.133

Reputation: 3

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 2018-05-31T06:33:46.060

Answers

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.

Pieter Wuille

Posted 2018-05-30T19:32:51.133

Reputation: 54 032

Thank you, but how get info of input input?Временный Аккаунт 2018-05-31T08:30:06.967

By looking it up. Find the transaction with that txid, and look at its output number vout.Pieter Wuille 2018-05-31T14:50:14.690