mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 10:27:29 +00:00 
			
		
		
		
	Use javascript lang on the snippet
This commit is contained in:
		
							parent
							
								
									d875019341
								
							
						
					
					
						commit
						6715a51fe8
					
				| @ -93,6 +93,8 @@ $ npm install -g bitcointest | ||||
| After installing `bitcointest`, you can create the `test.js` file with the following content: | ||||
| ``` | ||||
| $ nano test.js | ||||
| ``` | ||||
| ```javascript | ||||
| const { BitcoinNet, BitcoinGraph } = require('bitcointest'); | ||||
| net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002); | ||||
| graph = new BitcoinGraph(net); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user