mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Update 15_2_Programming_Bitcoind_with_C.md
This commit is contained in:
parent
f5d35a1b10
commit
9b0886c34d
@ -64,7 +64,7 @@ float tx_total = tx_amount + tx_fee;
|
|||||||
|
|
||||||
### X. Prepare Your RPC
|
### X. Prepare Your RPC
|
||||||
|
|
||||||
Obviously, you're going to need to get all of your variables ready again, as discussed in [§12.2: Accessing Bitcoind with C](12_2_Accessing_Bitcoind_with_C.md). You also need to initialize your library, connect your RPC client, and prepare your response object:
|
Obviously, you're going to need to get all of your variables ready again, as discussed in [§12.2: Accessing Bitcoind with C](15_1_Accessing_Bitcoind_with_C.md). You also need to initialize your library, connect your RPC client, and prepare your response object:
|
||||||
```
|
```
|
||||||
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", "73bd45ba60ab8f9ff9846b6404769487", "127.0.0.1", 18332);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user