mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	Update 4_2__Interlude_Using_JQ.md
This commit is contained in:
		
							parent
							
								
									f132a43e32
								
							
						
					
					
						commit
						60ab77ee51
					
				| @ -374,7 +374,7 @@ $ ./txfee-calc.sh $rawtxhex | ||||
| 
 | ||||
| ## Make Some New Aliases | ||||
| 
 | ||||
| JQ code can be a little unwieldly, so you should consider adding some longer and more interesting invocations to your ~/.bash_profile | ||||
| JQ code can be a little unwieldly, so you should consider adding some longer and more interesting invocations to your ~/.bash_profile. Any time you're looking throug a large mass of information in a JSON Object output from a bitcoin-cli command, consider writing an alias to strip it down to just what you want to see. | ||||
| ``` | ||||
| alias btcunspent="bitcoin-cli listunspent | jq -r '.[] | { txid: .txid, vout: .vout, amount: .amount }'" | ||||
| alias btctxfee="~/txfee-calc.sh" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user