mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-11-04 04:17:43 +00:00 
			
		
		
		
	Update 15_2_sendtoaddress.c
This commit is contained in:
		
							parent
							
								
									90cf1df3eb
								
							
						
					
					
						commit
						81433eff3e
					
				@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  bitcoinrpc_global_init();
 | 
					  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) {
 | 
					  if (rpc_client) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -262,7 +262,7 @@ int main(int argc, char *argv[]) {
 | 
				
			|||||||
    json_decref(lu_response);
 | 
					    json_decref(lu_response);
 | 
				
			||||||
    bitcoinrpc_method_free(rpc_method);
 | 
					    bitcoinrpc_method_free(rpc_method);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* 8. Sign the Transaction */
 | 
					    /* 8. Send the Transaction */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    params = json_array();
 | 
					    params = json_array();
 | 
				
			||||||
    json_array_append_new(params,json_string(tx_signrawhex));
 | 
					    json_array_append_new(params,json_string(tx_signrawhex));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user