mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-08 08:26:17 +00:00
Create 12_3_Accessing_Bitcoind_with_Node.md
This commit is contained in:
parent
321d2ff0ab
commit
580e41f0e2
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Accessing the `bitcoind` doesn't require `curl`. All you need is simple RPC functionality. That's what's provided by [BCRPC](https://github.com/dgarage/bcrpc) by kallewoof of Digital Garage.
|
Accessing the `bitcoind` doesn't require `curl`. All you need is simple RPC functionality. That's what's provided by [BCRPC](https://github.com/dgarage/bcrpc) by kallewoof of Digital Garage.
|
||||||
|
|
||||||
## Setting Up Node.js
|
## Set Up Node.js
|
||||||
|
|
||||||
BCRPC is built on node.js. Thus, you'll first need to install the `node.js` and `npm` (node package manager) packages for your system.
|
BCRPC is built on node.js. Thus, you'll first need to install the `node.js` and `npm` (node package manager) packages for your system.
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
|||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
sudo apt-get install mocha -g
|
sudo apt-get install mocha -g
|
||||||
```
|
```
|
||||||
### Setting 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.
|
You should next download BCRPC from the [BCRPC Repository](https://github.com/dgarage/bcrpc). Clone it or download it, as you prefer.
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ $ cd bcrpc-master
|
|||||||
$ npm install
|
$ npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing 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