Closed inliquid closed 6 years ago
Your funds are more than likely locked for masternode.
5k are locked in another wallet this one holds only 3+k as you may see(edited) I also tried by disabling all related to MN stuff and then enabling it with no result
@carsenk your fucking wallet still doesn't work, even with this "magic" command resendtx
3.12974050
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3.12973050
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$ ./denariusd resendtx
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$ ./denariusd resendtx
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$ ./denariusd resendtx
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$ ./denariusd resendtx
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
dnr@dnrftw:~/denarius/src$
Any coin/cryptocurrency will do this with transactions if the number of inputs needed to add up to that much causes the transaction to be just too big. resendtx is to attempt to resend the transactions that are pending in the mempool in the wallet, you are running a JSON RPC command to attempt to send funds, getting the Transaction Creation Failed error is a normal typical error response and is 100% expected it the CreateTransaction() fails in a random way (transaction being too big). If you have the technical ability, you could potentially use createrawtransaction and combine the dust outputs you have with a larger non-dust outputs in a free transaction. After several iterations, all of the dust would eventually be swept up.
Note that if you don't know what you are doing, it is possible with createrawtransaction to accidentally pay a significant portion of your transaction as a transaction fee.
If you are confused as to why this is happening, here are some threads that may help to explain it some to you: https://bitcointalk.org/index.php?topic=218447.0 https://bitcointalk.org/index.php?topic=196330.0 https://bitcointalk.org/index.php?topic=89532.0 https://bitcointalk.org/index.php?topic=104641.0
Another solution to this for you, would be to potentially load up this wallet.dat into a QT and use Coin Control to tidy up your inputs or even attempt to just export the private keys for the addresses with funds and reimport them into a new wallet.dat.
So what should I do in this situation? Imagine I have real coins on mainnet and fail with sending them out or this will happen on Exchange. I still getting errors.
dnr@dnrftw:~/denarius/src$ ./denariusd sendtoaddress 8TMCocpdg481PFRgc88KzTRTeuX2q9Msz7 3
error: {"code":-4,"message":"Error: Transaction creation failed "}
Already described this a number of times in #testnet@Discord with much more details.
sendtoaddress command doesn't work for almost all external address. It stopped working with fatal error at some point. But has been working previously with this wallet. Last address it worked for was own address.
WHATS IN WALLET:
THE ERROR
LOGS: