mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	Merge pull request #118 from leonardo-sj/patch-1
Update 03_3__Interlude_Using_Command-Line_Variables.md to use the "legacy" option in getnewaddress
This commit is contained in:
		
						commit
						aa09815262
					
				| @ -13,7 +13,7 @@ That's a simple command substitution, the equivalent to ``VARIABLE=`command` ``. | ||||
| To create a new address would then look like this: | ||||
| ``` | ||||
| $ unset NEW_ADDRESS_1 | ||||
| $ NEW_ADDRESS_1=$(bitcoin-cli getnewaddress) | ||||
| $ NEW_ADDRESS_1=$(bitcoin-cli getnewaddress "" legacy) | ||||
| ``` | ||||
| These commands clear the NEW_ADDRESS_1 variable, just to be sure, then fill it with the results of the `bitcoin-cli getnewaddress` command. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user