mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 10:27:29 +00:00 
			
		
		
		
	Update 8_5_Spending_a_Transaction_with_a_Bitcoin_script.md
This commit is contained in:
		
							parent
							
								
									f9d7758940
								
							
						
					
					
						commit
						c62fbd6a2a
					
				| @ -1,14 +1,22 @@ | ||||
| > **WARNING:** The lack of any code Script interpretors is currently halting this section. | ||||
| > **WARNING:** This chapter is awaiting the writing of chapter 12+ | ||||
| 
 | ||||
| # 8.5: Spending a Transaction with a Bitcoin Script | ||||
| 
 | ||||
| Before we close out an overview of P2SH transactions, it's worth briefly discussing how to spend them! | ||||
| > **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning. | ||||
| 
 | ||||
| Before we close out this overview of P2SH transactions, we're going to touch upon how to spend them. | ||||
| 
 | ||||
| ## Use the Redeem Script | ||||
| 
 | ||||
| As we saw in [§6.2: Spending a Transaction to a Multisig](6_2_Spending_a_Transaction_to_a_Multisig.md), spending a P2SH transaction is all about having that serialized version of the locking script, the so-called _redeemScript_. So, the first step to being able to spend a P2SH transaction is ensuring that you save the _redeemScript_ before you give out the P2SH address to everyone.  | ||||
| As we saw in [§6.2: Spending a Transaction to a Multisig](6_2_Spending_a_Transaction_to_a_Multisig.md), spending a P2SH transaction is all about saving that serialized version of the locking script, the so-called _redeemScript_. So, the first step to being able to spend a P2SH transaction is making sure that you save the _redeemScript_ before you give out the P2SH address to everyone.  | ||||
| 
 | ||||
| Because P2SH addresses aren't integrated into `bitcoin-cli` there will be no short-cuts as you saw in [§6.3: Sending an Automated Multisig](6_3_Sending_an_Automated_Multisig.md). You're going to need to collect all the more complex variables on your own! | ||||
| ### Collect Your Variables | ||||
| 
 | ||||
| Because P2SH addresses aren't integrated into `bitcoin-cli` there will be no short-cuts like you saw in [§6.3: Sending an Automated Multisig](6_3_Sending_an_Automated_Multisig.md). You're going to need to collect all the more complex variables on your own! | ||||
| 
 | ||||
| [[PENDING]] | ||||
| 
 | ||||
| [[Notes: Example of saving redeemScript, recipient, keys, and scriptPubKey.]] | ||||
| 
 | ||||
| ## Create the Transaction | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user