Update 12_3_Programming_Bitcoind_with_C.md

This commit is contained in:
Shannon Appelcline 2017-06-21 12:08:49 -07:00 committed by GitHub
parent 49ec05bd7d
commit 9e41101f1d

View File

@ -85,6 +85,9 @@ json_t *lu_result = NULL;
lu_response = bitcoinrpc_resp_get (btcresponse);
lu_result = json_object_get(lu_response,"result");
```
> **WARNING:** You only get a result if there wasn't an error. Here's another place for better error checking for production code.
Then, you go into a loop, examining each unspent transaction, which appears as an element in your JSON result array:
```
int i;