Learning-Bitcoin-from-the-C.../8_4_Sending_and_Spending_a_Bitcoin_Script.md
2017-05-22 15:54:48 -07:00

659 B

WARNING: The lack of any code Script interpretors is currently halting this section.

8.4: Sending & Spending a Bitcoin Script

If you can't test Bitcoin Scripts in simple APIs and UIs, then you can at least test them by sending and spending sample P2SH transactions on testnet, right? Sort of. This is what you need to do to test Bitcoin Scripts currently, but you'll need some tools from the next Part of the book, so some of this will still remain theoretical.

Writing a Script to Hash Scripts

Sending a P2SH Transaction

From There:

BitCoinJ ScriptBuilder

Spending

[need to successfully send first!]

Spending a P2SH Transaction