-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not send, "Negative output" #24
Comments
Hi, I think your problem might be that you are not waiting for enough confirmation between receiving and sending. |
Hello @omershlo , |
I will try to recreate it. Can you provide more details pleas? |
Hello, |
upload the wallet.data file for yor ease to recreate. |
what is the amount you sent to the outside address? |
I send only 10_000 satoshis outside, the total amount in the wallet is 1 million, though. The exact balance and pending value, I've did a screenshot from the privious comment. Pending value is 0 when do the transaction. |
I got it! |
my claim was that you have 1340711 in balance and you try to send all without considering the 0.0001 constant fee. You should try to send no more than |
Sure, you can see in the last command, I set the amount only "-a 0.00001"
Thank you, please help me. I attach the file wallet.data in previous comment. You can take it any time. |
I managed to recreate. I will look into it and report when fixed. |
I just remembered that this is probably a known old issue that the wallet was not able to do more than 1 transaction. I fixed it my branch: #18 (use legacy wallet and legacy send). Please make sure it works on this branch while I am deploying the fix to master |
well, you are right. now I really don't have explanation, I will dive deep and let you know |
meanwhile - try do it without sending a transaction to yourself |
I pushed some fix to my branch. try it now |
working? |
Try again |
I started from scratch to make sure and followed your scenario {generate address A, receive to address, generate new address, send x to A, send x to outside address (I used the one you used)}.
|
👍 It looks promising. I'll try do it again later when comeback and update the result for you. |
Closing, please reopen if you see need. |
Hello KZen people,
I've have a wallet with 2 derivative addresses. When I do the transaction within these 2 addresses, there are no error.
However when I try to transfer BTC to an outside address, I got this error:
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Error("missing fieldresult
", line: 1, column: 122)', src/libcore/result.rs:xxx:xxThe command is:
Tried to take the raw transaction out and send it manually through https://testnet.smartbit.com.au/txs/pushtx, I got this error
PUSH TRANSACTION ERROR: 16: BAD-TXNS-VOUT-NEGATIVE
After decode the transaction, I found this in the output
{
"addresses": null,
"script": "001429dd1071596903f049574e8e1f8529e14a4a4737",
"script_type": "pay-to-witness-pubkey-hash",
"value": -10000
}
The whole raw is
000000000001011c65b37fa305ef8b4c4ccb9731c2b14aa7dc933acbf08e0dc845c5148c7ea8180000000000ffffffff02e8030000000000001976a91452db02dda5c812097c67307ee63c23c22ea955e288acf0d8ffffffffffff16001429dd1071596903f049574e8e1f8529e14a4a473702473044022065ef7a2f120198f4acb7048edf90d070622583149eeb38c5fecb9f669e669b6202200532d8662932be31ae2586364f8fb7862ac93d0464eb07599e518eb468f0f0830121036b3a6ead2e7617c155f39f2f1b9a8ec963c0fb0b3c46154ea1074fe14d4221bb00000000
Hope to hear from you soon :)
Thank you
The text was updated successfully, but these errors were encountered: