Best to play with Bitcoin using "-regtest" for prototyping of actual scripts (the debug.log can help with working out why scripts have failed).
How do I use that? Where is it documented? thanks
Start Bitcoin Core with the
-regtest flag in the command that starts it. Mine some regtest coins and then create your transaction by hand. Push it through your Bitcoin Core and see if it transacts or not.