From fcb7fb3b5b2c70b1d9fde04d560005795be93949 Mon Sep 17 00:00:00 2001 From: youngmtool Date: Sat, 18 Nov 2017 07:40:50 +0900 Subject: [PATCH] Update transaction.md --- bitcoin_transfer/transaction.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitcoin_transfer/transaction.md b/bitcoin_transfer/transaction.md index 0674e54..f1f759f 100644 --- a/bitcoin_transfer/transaction.md +++ b/bitcoin_transfer/transaction.md @@ -97,12 +97,13 @@ foreach (TxOut output in outputs) } ``` -Now let's examine the **inputs**. If you look at them you will notice a previous output is referenced. Each input shows you which previous out has been spent in order to fund this transaction. +Now let's examine the **inputs**. If you look at them, you will notice a previous output is referenced. Each input shows you which previous out has been spent in order to fund this transaction. ```cs var inputs = transaction.Inputs; foreach (TxIn input in inputs) { + //Get each previous output which is referenced from another previous transaction. OutPoint previousOutpoint = input.PrevOut; Console.WriteLine(previousOutpoint.Hash); // hash of prev tx Console.WriteLine(previousOutpoint.N); // idx of out from prev tx, that has been spent in the current tx