Post
Topic
Board Bitcoin Technical Support
Re: Proper API Parameter Formatting
by
a63ntsm1th
on 13/09/2012, 17:01:46 UTC
at command line:

did senrawtransaction with existing tx and got error "already in block...."

sent my signed tx and got:

error: {"code":-22,"message":"TX rejected"}

so I guess something is wrong..... everything seems ok?

for reference here is the final signed tx which can be decoded using decoderawtransaction and everything looks ok?

Code:
0100000001f334b858fdee8ae33b6a56010b31aa4c192b5c6b01c4950421d70bbb0620c834010000008c4930460221009efd04aaf24cebbe2d063226955e44391cde6c45c40e51ec8288d0c36f7cbcfa022100daec10ba35b2bf86aff4eb0f6674747bc2da1f0e601f40e96897b6243b24700501410482fc9dccc054288979532fe8432a730c89ed0895be480e181292ffef27ea8c032bc9786baf46585def16ce336aa7cbe51367bd1d0964736935fffc28bf4650f8ffffffff02a0860100000000001976a9146deb5c5ff3eeda25ef41a190d029d7331df6faa788ace00f9700000000001976a91408510f40444f0210b4d2df6e650c3e7004a938df88ac00000000

Also decoding existing transaction and compare with my transaction at command line, seems ok.

using print_r however:

existing transaction has element [hex] at the beginning of the array, this is the hex of the signed transaction it appears, whereas my tx starts with [txid] (no this is just the [verbose=1] returns the object, with its own reference in the first array element).