From 91eba50b50e2c1eff3648a57d7f1ec3a43eac2d4 Mon Sep 17 00:00:00 2001 From: leonardo-sj Date: Thu, 21 May 2020 12:58:00 -0300 Subject: [PATCH] Update 04_4__Interlude_Using_Curl.md getaddressesbyaccount was removed and the curl will return an error. As answer below, the command getaddressesbylabel can be used instead. https://bitcoin.stackexchange.com/questions/70311/getaddressesbyaccount-rpc-alternative --- 04_4__Interlude_Using_Curl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_4__Interlude_Using_Curl.md b/04_4__Interlude_Using_Curl.md index 0731baf..cfbea2c 100644 --- a/04_4__Interlude_Using_Curl.md +++ b/04_4__Interlude_Using_Curl.md @@ -146,7 +146,7 @@ Though you're accessing `bitcoind` directly, you'll still get access to wallet f Use the `getaddressesbyaccount` RPC to list all of your current addresses: ``` -$ curl --user bitcoinrpc:73bd45ba60ab8f9ff9846b6404769487 --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": [""] }' -H 'content-type: text/plain;' http://127.0.0.1:18332/ | jq -r '.' +$ curl --user bitcoinrpc:73bd45ba60ab8f9ff9846b6404769487 --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbylabel", "params": [""] }' -H 'content-type: text/plain;' http://127.0.0.1:18332/ | jq -r '.' { "result": [