From dd316ac68b5ad67e8360d573bd02a58932198570 Mon Sep 17 00:00:00 2001 From: kallewoof Date: Wed, 13 Dec 2017 15:25:25 +0900 Subject: [PATCH] Update 12_5_Accessing_Bitcoind_with_Other_Languages.md --- 12_5_Accessing_Bitcoind_with_Other_Languages.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/12_5_Accessing_Bitcoind_with_Other_Languages.md b/12_5_Accessing_Bitcoind_with_Other_Languages.md index 6436a99..e201f51 100644 --- a/12_5_Accessing_Bitcoind_with_Other_Languages.md +++ b/12_5_Accessing_Bitcoind_with_Other_Languages.md @@ -21,15 +21,14 @@ sudo apt-get install mocha -g ``` ### Set Up BCRPC -You should next download BCRPC from the [BCRPC Repository](https://github.com/dgarage/bcrpc). Clone it or download it, as you prefer. - -Once you've done that, you can finish setting it up: +Create a new node.js project and install BCRPC via NPM. ``` -$ unzip bcrpc-master.zip -$ cd bcrpc-master -$ npm install +$ mkdir myproject +$ cd myproject +$ npm init +[...] +$ npm install --save bcrpc ``` - ### Test BCRPC To test the BCRPC package, you must first set environmental variables for your rpcuser and rpcpassword. As noted in [ยง12.1: Accessing Bitcoind with Curl](12_1_Accessing_Bitcoind_with_Curl.md), these come from `~/.bitcoin/bitcoin.conf`.