From a3f6e4041d81891dd1302c24c42aae0ca2f65cff Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Tue, 1 Sep 2020 12:58:04 -1000 Subject: [PATCH] Update 17_1_Accessing_Bitcoind_with_Go.md --- 17_1_Accessing_Bitcoind_with_Go.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/17_1_Accessing_Bitcoind_with_Go.md b/17_1_Accessing_Bitcoind_with_Go.md index 62fa3e1..2dfb149 100644 --- a/17_1_Accessing_Bitcoind_with_Go.md +++ b/17_1_Accessing_Bitcoind_with_Go.md @@ -148,7 +148,10 @@ All that's required now is to make an informational call like `GetBlockCount` or fmt.Printf("%d\n", blockCount) fmt.Printf("%s\n", blockHash.String()) ``` -The `rpcclient` functions can take inputs as well, for example ```client.GetBlockHash(blockCount)``` takes the block count as an input. The ```client.GetBlockHash(blockCount)``` from above would look like this as a ```bitcoin-cli``` command: + +### Making an RPC Call with Arguments + +The `rpcclient` functions can take inputs as well; for example ```client.GetBlockHash(blockCount)``` takes the block count as an input. The ```client.GetBlockHash(blockCount)``` from above would look like this as a ```bitcoin-cli``` command: ``` $ bitcoin-cli getblockhash 1830868 00000000000002d53b6b9bba4d4e7dc44a79cebd1024d1bcfb9b3cc07d6cad9c