mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	adjusted network arguments
This commit is contained in:
		
							parent
							
								
									1832305d58
								
							
						
					
					
						commit
						ef7f28cb39
					
				| @ -9,11 +9,11 @@ This section describes how payments work on the Lightning Network, how to create | ||||
| 
 | ||||
| ## Creating an Invoice | ||||
| 
 | ||||
| To create a new invoice on c-lightning you would use the `lightning-cli --network=testnet invoice` command. | ||||
| To create a new invoice on c-lightning you would use the `lightning-cli --testnet invoice` command. | ||||
| 
 | ||||
| Here's how it would work with c-lightning, using arguments of an amount (in millisatoshis), a label, and a description. | ||||
| ``` | ||||
| c$ lightning-cli --network=testnet invoice 100000 joe-payment "The money you owe me for dinner" | ||||
| c$ lightning-cli --testnet invoice 100000 joe-payment "The money you owe me for dinner" | ||||
| { | ||||
|    "payment_hash": "07a1c4bd7a38b4dea35f301c173cd8f9aac253b66bd8404d7ad829f226342490", | ||||
|    "expires_at": 1603305795, | ||||
| @ -67,7 +67,7 @@ The human readable part is `ln+tb+100u`. | ||||
| The rest of the invoice (`1p0cwnqtpp5djkdahy4hz0wc909y39ap9tm3rq2kk9320hw2jtntwv4x39uz6asdr5ge5hyum5ypxyugzsv9uk6etwwssz6gzvv4shymnfdenjqsnfw33k76twypskuepqf35kw6r5de5kueeqveex7mfqw35x2gzrdakk6ctwvssxc6twv5hqcqzpgsp5a9ryqw7t23myn9psd36ra5alzvp6lzhxua58609teslwqmdljpxs9qy9qsq9ee7h500jazef6c306psr0ncru469zgyr2m2h32c6ser28vrvh5j4q23c073xsvmjwgv9wtk2q7j6pj09fn53v2vkrdkgsjv7njh9aqqtjn3vd`) contains a timestamp, specifically tagged data, and a signature. You obviously can't read it yourself, but you can ask c-lightning's `lightning-cli` to do so with the `decodepay` command: | ||||
| 
 | ||||
| ``` | ||||
| c$ lightning-cli --network=testnet decodepay lntb100u1p0cwnqtpp5djkdahy4hz0wc909y39ap9tm3rq2kk9320hw2jtntwv4x39uz6asdr5ge5hyum5ypxyugzsv9uk6etwwssz6gzvv4shymnfdenjqsnfw33k76twypskuepqf35kw6r5de5kueeqveex7mfqw35x2gzrdakk6ctwvssxc6twv5hqcqzpgsp5a9ryqw7t23myn9psd36ra5alzvp6lzhxua58609teslwqmdljpxs9qy9qsq9ee7h500jazef6c306psr0ncru469zgyr2m2h32c6ser28vrvh5j4q23c073xsvmjwgv9wtk2q7j6pj09fn53v2vkrdkgsjv7njh9aqqtjn3vd | ||||
| c$ lightning-cli --testnet decodepay lntb100u1p0cwnqtpp5djkdahy4hz0wc909y39ap9tm3rq2kk9320hw2jtntwv4x39uz6asdr5ge5hyum5ypxyugzsv9uk6etwwssz6gzvv4shymnfdenjqsnfw33k76twypskuepqf35kw6r5de5kueeqveex7mfqw35x2gzrdakk6ctwvssxc6twv5hqcqzpgsp5a9ryqw7t23myn9psd36ra5alzvp6lzhxua58609teslwqmdljpxs9qy9qsq9ee7h500jazef6c306psr0ncru469zgyr2m2h32c6ser28vrvh5j4q23c073xsvmjwgv9wtk2q7j6pj09fn53v2vkrdkgsjv7njh9aqqtjn3vd | ||||
| { | ||||
|    "currency": "tb", | ||||
|    "created_at": 1602702347, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user