<p>The problem, is there is no problem. It looks like there was two issues I had, which contributed to the error. So this is a bit of speculation really. </p>

<p>The first was that I had built bitcoind on the Mac (8.9+) and somehow the blockchain got somehow corrupted or something caused an issue. So I fixed this by running bitcoind -reindex</p>

<p>The second possible issue was that mempool had either already had the transaction and couldn't/hadn't resent it. </p>

<p>Either way, there is a (throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected"); // TODO: report validation state in rpcrawtransaction.cpp), when validating the transaction and my c++ is not good enough to help report the validation state.</p>

<p>But if anyone else suggests how I can approach it then I would gladly!  </p>

CC BY-SA 3.0
2013-12-10T17:41:07.753Z
2013-12-10T17:41:07.753Z
serialb
<p>I've created a raw transaction on <strong>testnet</strong>:</p>

<p><a href="http://pastebin.com/v8rBmGkx" rel="nofollow">http://pastebin.com/v8rBmGkx</a></p>

<p>however I'm getting error: {"code":-22,"message":"TX rejected"}</p>

<p>I've looked in the debug.log and there is no other clues. Can anyone tell me (pls) what's wrong with my tx?</p>

<p>Additionally signrawtransaction returned correct: true. And as far as I can see the fees and output values add up. I'm a little confused to what the problem is?</p>

<transactions><bitcoind>
Error Code 22 returned from bitcoind sendrawtransaction
serialb
# Error Code 22 returned from bitcoind sendrawtransaction

(Asked by: username_0 on 2013-11-29)

I've created a raw transaction on **testnet**:

<http://pastebin.com/v8rBmGkx>

however I'm getting error: {"code":-22,"message":"TX rejected"}

I've looked in the debug.log and there is no other clues. Can anyone tell me (pls) what's wrong with my tx?

Additionally signrawtransaction returned correct: true. And as far as I can see the fees and output values add up. I'm a little confused to what the problem is?

**Tags:** transactions, bitcoind


---

## 1 answers

### Answer by username_0 on 2013-12-10. Score: 1

The problem, is there is no problem. It looks like there was two issues I had, which contributed to the error. So this is a bit of speculation really.

The first was that I had built bitcoind on the Mac (8.9+) and somehow the blockchain got somehow corrupted or something caused an issue. So I fixed this by running bitcoind -reindex

The second possible issue was that mempool had either already had the transaction and couldn't/hadn't resent it.

Either way, there is a (throw JSONRPCError(RPC\_DESERIALIZATION\_ERROR, "TX rejected"); // TODO: report validation state in rpcrawtransaction.cpp), when validating the transaction and my c++ is not good enough to help report the validation state.

But if anyone else suggests how I can approach it then I would gladly!


---

