Bitcoin Forum
July 30, 2024, 12:27:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: non standard bitcoin scripts  (Read 910 times)
dumquestion (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 31, 2012, 09:29:50 PM
 #1

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.


kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1026



View Profile
August 31, 2012, 10:52:02 PM
 #2

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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!