mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	Create 12_3_Accessing_Bitcoind_with_Node.md
This commit is contained in:
		
							parent
							
								
									a35eb0c43b
								
							
						
					
					
						commit
						a53d6852f5
					
				
							
								
								
									
										29
									
								
								12_3_Accessing_Bitcoind_with_Node.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								12_3_Accessing_Bitcoind_with_Node.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| # 12.3: Accessing Bitcoind with Node | ||||
| 
 | ||||
| > **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning. | ||||
| 
 | ||||
| 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 | ||||
| 
 | ||||
| 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.  | ||||
| 
 | ||||
| If you're using a Ubuntu machine, you can run the following commands to get a new version of `node.js` (as opposed to the horribly out-of-date version in the Ubuntu package system). | ||||
| ``` | ||||
| curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | ||||
| sudo apt-get install -y nodejs | ||||
| sudo apt-get install mocha -g | ||||
| ``` | ||||
| ### Setting 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: | ||||
| ``` | ||||
| $ unzip bcrpc-master.zip | ||||
| $ cd bcrpc-master | ||||
| $ npm install | ||||
| ``` | ||||
| 
 | ||||
| ### Testing BCRPC | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user