Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: rippledj on January 09, 2015, 07:10:56 PM



Title: error: {"code":-22,"message":"TX rejected"}
Post by: rippledj on January 09, 2015, 07:10:56 PM
Dear all,

I'm attempting to create a raw transaction and push it to the network using AuroraCoind (bitcoind).  I get the error mentioned in the title.  Here are the relavant debug.log entries and getinfo to see more clearly.

Any help to understand that I'm doing wrong would be great.  Here is my process to sent one AuroraCoin from unspent outputs to another address in my wallet (the txout value is 2.000000):

-$ AuroraCoind listunspent

#use a txid from listunspent to build raw transaction including vout

-$ AuroraCoind createrawtransaction '[{"txid":"_txid_from_listunspent", "vout":0}]' '{"_other_address_in_my_wallet": 1.0}' , {"_another_address_in_my_wallet":1.0}

#it create the raw transaction and returns a raw transaction

-$ AuroraCoind decoderawtransaction <paste in raw transaction code from above>

#outputs the correct details

-$AuroraCoind signrawtransaction <paste in raw transaction code from above>

-$ AuroraCoind sendrawtransaction <paste in raw transaction code from above>
Output: error: {"code":-22,"message":"TX rejected"}


debug.log output:
-----------------------
ThreadRPCServer method=sendrawtransaction
ERROR: CTxMemPool::accept() : nonstandard transaction input

getinfo output:
-------------------

{
    "version" : 1030000,
    "protocolversion" : 1030000,
    "walletversion" : 60000,
    "balance" : 499.99900000,
    "blocks" : 87914,
    "connections" : 10,
    "proxy" : "",
    "difficulty" : 127.75048353,
    "testnet" : false,
    "keypoololdest" : 1419127982,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "mininput" : 0.00010000,
    "errors" : ""
}

Any ideas?


Title: Re: error: {"code":-22,"message":"TX rejected"}
Post by: kkoenen on September 27, 2019, 08:43:49 PM
Experiencing the same error, used the same steps to reproduce.

Did you ever find a solution?

OR; Can you please advice on how to change the transaction.cpp (?) file to get more elaborated error logging.