mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	Create 17_3_walletinfo.js
This commit is contained in:
		
							parent
							
								
									0b7900433d
								
							
						
					
					
						commit
						b5dd11dc5c
					
				
							
								
								
									
										14
									
								
								src/17_3_walletinfo.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/17_3_walletinfo.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | |||||||
|  | const RpcAgent = require('bcrpc'); | ||||||
|  | agent = new RpcAgent({port: 18332, user: 'StandUp', pass: '6305f1b2dbb3bc5a16cd0f4aac7e1eba'}); | ||||||
|  | 
 | ||||||
|  | agent.getReceivedByAddress('tb1q04q2wzlhfqlrnz95ynfj7gp4t3yynrj0542smv', function (err, addressInfo) { | ||||||
|  |   if (err) | ||||||
|  |     throw Error(JSON.stringify(err)); | ||||||
|  |   console.log(addressInfo.result); | ||||||
|  | }); | ||||||
|  | 
 | ||||||
|  | agent.getWalletInfo(function (err, walletInfo) { | ||||||
|  |   if (err) | ||||||
|  |     throw Error(JSON.stringify(err)); | ||||||
|  |   console.log(walletInfo.result); | ||||||
|  | }); | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user