Title: non standard bitcoin scripts Post by: dumquestion on August 31, 2012, 09:29:50 PM Preferably using either using bitcoind or bitcoin-qt, how do I get a transaction with a non standard Scrip?
I.e. one different than the standard one : OP_DUP OP_HASH160 (hash) OP_EQUALVERIFY OP_CHECKSIG for example : OP_DUP OP_DROP OP_DUP OP_HASH160 (hash) OP_EQUALVERIFY OP_CHECKSIG Createrawtransaction doesn't appear to support this as it appears to take only two kinds of arguments : a list of previous transactions to use from and a list of outputs and addresses to payto. I'm actually attempting this on testnet in a box and can modify the source as needed. Title: Re: non standard bitcoin scripts Post by: kjj on August 31, 2012, 10:52:02 PM Build it by hand. Your example should be pretty easy to do.
The code gets a bit murky if you aren't up on your C++ skills (like me), but start around line 261 of rpcrawtransaction.cpp and follow the calls if you want to see where the original script comes from. |