Thanks for that (it was helpful) and I think I am "very close" with this attempt:
01000000013c9eab4935d1b8fe2bad3af1c443c2c61ab8212c3f45c2ba59ff4a2e93c481e200000
0006c4930460221008acf9a9426220a6447d4e7062e796813b39208d242e4ae467d69b5804a25db
150221008b3d68c9b64517c4c011d3074c4cc04196f51f686178d59f11ae022a84b3574e012103b
d6f03d746e0127a45c6f8ba39326da9d7a00efce7a74828e2e5bef85e37f8feffffffff01204e00
00000000001976a91406c1991c6466a550b66931ea48970cfd17ff51b388ac00000000
01000000013c9eab4935d1b8fe2bad3af1c443c2c61ab8212c3f45c2ba59ff4a2e93c481e2000000006c4930460221008acf9a9426220a6447d4e7062e796813b39208d242e4ae467d69b5804a25db150221008b3d68c9b64517c4c011d3074c4cc04196f51f686178d59f11ae022a84b3574e012103bd6f03d746e0127a45c6f8ba39326da9d7a00efce7a74828e2e5bef85e37f8feffffffff01204e0000000000001976a91406c1991c6466a550b66931ea48970cfd17ff51b388ac00000000
But alas it is rejected (-22).
It appears to decode fine so am wondering whether it is the sig that I've got wrong or if it is something else?
{
"lock_time":0,
"inputs":[
{
"prev_out":{
"index":0,
"hash":"e281c4932e4aff59bac2453f2c21b81ac6c243c4f13aad2bfeb8d13549ab9e3c"
},
"script":"4930460221008acf9a9426220a6447d4e7062e796813b39208d242e4ae467d69b5804a25db150221008b3d68c9b64517c4c011d3074c4cc04196f51f686178d59f11ae022a84b3574e012103bd6f03d746e0127a45c6f8ba39326da9d7a00efce7a74828e2e5bef85e37f8fe"
}
],
"vout_sz":1,
"hash":"62d03bf1444455ce2ff343a8f0e56b705b9ed4558768854f6e700e8a7451b787",
"vin_sz":1,
"out":[
{
"address":"1ciyam3htJit1feGa26p2wQ4aw6KFTejU",
"script_string":"OP_DUP OP_HASH160 06c1991c6466a550b66931ea48970cfd17ff51b3 OP_EQUALVERIFY OP_CHECKSIG",
"value":20000,
"script":"76a91406c1991c6466a550b66931ea48970cfd17ff51b388ac"
}
],
"size":193,
"version":1
}
The sig is applied to two SHA256s of the following:
01000000013c9eab4935d1b8fe2bad3af1c443c2c61ab8212c3f45c2ba59ff4a2e93c481e200000
0001976a9143a89c372f5308cb58828979bb624f7e8822672ed88acffffffff01204e0000000000
001976a91406c1991c6466a550b66931ea48970cfd17ff51b388ac0000000001000000
01000000013c9eab4935d1b8fe2bad3af1c443c2c61ab8212c3f45c2ba59ff4a2e93c481e2000000001976a9143a89c372f5308cb58828979bb624f7e8822672ed88acffffffff01204e0000000000001976a91406c1991c6466a550b66931ea48970cfd17ff51b388ac0000000001000000
With the final hash being: 3f857e90be3805b9894f45b5082211f8435bd48d66b22b06a26a4ca37fb679c2