I would like to manually write a few locking and unlocking scripts to get a deeper feel for that part of the network. What is the simplest step-by-step set of instructions to set up everything needed to use Script in Windows, on regtest or some other testnet? Is it possible to do this in Bitcoin-qt, or is working in the command-line a necessity?
Asked
Active
Viewed 217 times
2 Answers
0
There is astoundingly very few information on script and "getting started" on the net, though one can find a lot of scripts. When you want to assemble a script, just to play around with its features and implications, it gets quickly very difficult. I had answered a similiar question here in detail, to show first steps and how to go.
I am generally using unixoide type systems, so I am not 100% sure on Windows. But if you have a (regtest) daemon running, using the command line and sending it some commands should do the trick.
Basically there are 5 steps:
- prepare addresses & balances
- create a tx
- sign the tx
- adjust the scriptsig
- send the tx
The most critical part is in step 4, where you need to play with length of the script - and probably a lot of trial and error :-) Good luck!

pebwindkraft
- 5,086
- 2
- 13
- 34