Update 15_2_sendtoaddress.c

This commit is contained in:
Shannon Appelcline 2020-08-04 15:14:11 -10:00 committed by GitHub
parent 90cf1df3eb
commit 81433eff3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
bitcoinrpc_global_init();
rpc_client = bitcoinrpc_cl_init_params ("bitcoinrpc", "73bd45ba60ab8f9ff9846b6404769487", "127.0.0.1", 18332);
rpc_client = bitcoinrpc_cl_init_params ("bitcoinrpc", "YOUR-RPC-PASSWD", "127.0.0.1", 18332);
if (rpc_client) {
@ -262,7 +262,7 @@ int main(int argc, char *argv[]) {
json_decref(lu_response);
bitcoinrpc_method_free(rpc_method);
/* 8. Sign the Transaction */
/* 8. Send the Transaction */
params = json_array();
json_array_append_new(params,json_string(tx_signrawhex));