mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Update 12_5_Accessing_Bitcoind_with_Other_Languages.md
This commit is contained in:
parent
684bb1c4d3
commit
dd316ac68b
@ -21,15 +21,14 @@ sudo apt-get install mocha -g
|
|||||||
```
|
```
|
||||||
### Set Up BCRPC
|
### 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.
|
Create a new node.js project and install BCRPC via NPM.
|
||||||
|
|
||||||
Once you've done that, you can finish setting it up:
|
|
||||||
```
|
```
|
||||||
$ unzip bcrpc-master.zip
|
$ mkdir myproject
|
||||||
$ cd bcrpc-master
|
$ cd myproject
|
||||||
$ npm install
|
$ npm init
|
||||||
|
[...]
|
||||||
|
$ npm install --save bcrpc
|
||||||
```
|
```
|
||||||
|
|
||||||
### Test 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`.
|
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`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user