Bitcoin Forum
May 03, 2024, 09:43:53 PM *
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.


1714772633
Hero Member
*
Offline Offline

Posts: 1714772633

View Profile Personal Message (Offline)

Ignore
1714772633
Reply with quote  #2

1714772633
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714772633
Hero Member
*
Offline Offline

Posts: 1714772633

View Profile Personal Message (Offline)

Ignore
1714772633
Reply with quote  #2

1714772633
Report to moderator
1714772633
Hero Member
*
Offline Offline

Posts: 1714772633

View Profile Personal Message (Offline)

Ignore
1714772633
Reply with quote  #2

1714772633
Report to moderator
1714772633
Hero Member
*
Offline Offline

Posts: 1714772633

View Profile Personal Message (Offline)

Ignore
1714772633
Reply with quote  #2

1714772633
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



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!