From 741c0da1f3cbe08147778073ca7feeca44b1e2bf Mon Sep 17 00:00:00 2001 From: Masataka Shintoku Date: Thu, 30 Mar 2017 20:28:39 +0900 Subject: [PATCH] Modify a typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Amount” is property of Coin class. A property of TxOut class, which has the same meaning, is Value. --- bitcoin_transfer/spend_your_coin.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitcoin_transfer/spend_your_coin.md b/bitcoin_transfer/spend_your_coin.md index 581a074..6faf95b 100644 --- a/bitcoin_transfer/spend_your_coin.md +++ b/bitcoin_transfer/spend_your_coin.md @@ -137,7 +137,7 @@ var hallOfTheMakersAmount = new Money(0.5m, MoneyUnit.BTC); */ var minerFee = new Money(0.0001m, MoneyUnit.BTC); // UTXOからいくらトータルでビットコインを 使いたいか。 -var txInAmount = receivedCoins[(int) outPointToSpend.N].TxOut.Amount; +var txInAmount = receivedCoins[(int) outPointToSpend.N].TxOut.Value; Money changeBackAmount = txInAmount - hallOfTheMakersAmount - minerFee; ``` @@ -292,4 +292,3 @@ using (var node = Node.ConnectToLocal(network)) //Connect to the node Youtube: [How to make your first transaction with NBitcoin](https://www.youtube.com/watch?v=X4ZwRWIF49w) CodeProject: [Create a Bitcoin transaction by hand.](http://www.codeproject.com/Articles/1151054/Create-a-Bitcoin-transaction-by-hand) CodeProject: [DotNetWallet - Build your own Bitcoin wallet in C\#](https://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=214550&aid=1115639) -