Update 15_2_Programming_Bitcoind_with_C.md

This commit is contained in:
Javier Vargas 2020-06-24 13:21:39 +02:00 committed by GitHub
parent 603863da54
commit ed53bf1ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,7 @@ if (!tx_id) {
Repeat the standard RPC-lookup methodology to get a new address using get new address method.
```
rpc_method = bitcoinrpc_method_init(BITCOINRPC_METHOD_GETNEWADDRESS);
lu_response = bitcoinrpc_resp_get (btcresponse);
lu_result = json_object_get(lu_response,"result");
char *address = strdup(json_string_value(lu_result));