mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-08-28 19:21:30 +00:00
Update 12_3_Programming_Bitcoind_with_C.md
This commit is contained in:
parent
49ec05bd7d
commit
9e41101f1d
@ -85,6 +85,9 @@ json_t *lu_result = NULL;
|
|||||||
lu_response = bitcoinrpc_resp_get (btcresponse);
|
lu_response = bitcoinrpc_resp_get (btcresponse);
|
||||||
lu_result = json_object_get(lu_response,"result");
|
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:
|
Then, you go into a loop, examining each unspent transaction, which appears as an element in your JSON result array:
|
||||||
```
|
```
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user