I am experimenting in testnet with nonstandard scripts. There was a transaction, created by me, with the following vout script:
OP_HASH256 19c6197e2140b9d034fb20b9ac7bb753a41233caf1e1dafda7316a99cef41416 OP_EQUALVERIFY
This hash is DoubleSha256([1, 2, 3])
. When I try to create and send transaction with correct input, I've got TX rejected (code -22)
. Here is raw transaction:
010000000131f257b08dd9b9a5d02cbc09814f952487d2dd413a47f2e187ae075c6697f7b6000000000403010203ffffffff0140899500000000001976a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac00000000
And JSON-decoded version:
{
"txid" : "67c897e33ef2d9ec4464266c79d7b4a8afc783d8b5401e510227a3d6db42e75c",
"version" : 1,
"locktime" : 0,
"vin" : [{
"txid" : "b6f797665c07ae87e1f2473a41ddd28724954f8109bc2cd0a5b9d98db057f231",
"vout" : 0,
"scriptSig" : {
"asm" : "197121",
"hex" : "03010203"
},
"sequence" : 4294967295
}],
"vout" : [{
"value" : 0.09800000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 7593bcb001ff8859764b4ffd61233bb3a7971c59 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9147593bcb001ff8859764b4ffd61233bb3a7971c5988ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [ "mrEeLT14n2DN7fQnTas2vU4QkWjejS94BN" ]
}
}]
}