question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing inputs. Code:-25

See original GitHub issue

I tried to broadcast a Litecoin transaction that build with bitcoinjs-lib, but SOMETIMES it gets an error Missing inputs. Code:-25

Here is the raw transaction. I check if it is signed correctly with here and here, and it seems to me it is fine. Can anyone help me?

0100000001a85b6dfa713f55ca31cb143c6dc9b87ebd65bfa10944d7653afca22460a51c8f000000006b483045022100aa73b5eca7e0de31747ce417087411ca501f4b3831ad9a269a7053c074c2605b02202f950647faabb08b9c6f9d69f8ec51a2a830862cbd8b7e76e58d6200edd1ffc901210376c2430c5f191aeb65f03f1c129d80bfa902fc9949d855eb044ff29fbc2e37a4ffffffff02ac010f00000000001976a91490ab25fdff5f233a108a09509a42464edd0f2b4788aca4630000000000001976a914d6e95f48b6526c0aaf149f5acbbf2eacf721750d88ac00000000

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dcousenscommented, Jan 17, 2018

Can’t I set under DustThreshold for change?

Nope.

it is impossible to divide an UTXO to less than 54600 litoshis.

What do you mean? If you can’t add an output for change that is less than the dust threshold set by the network, then throw it away (aka, add it to the mining fee), or don’t spend it.

1reaction
yuyaogawacommented, Jan 17, 2018

I kind of found out that one of the outputs’ value does not match the DustThreshold which is currently 54600. The above transaction has 2 outputs which are out[0] is 67220 and out[1] is 24164. Out[1] is supposed to be for the change. Can’t I set under DustThreshold for change? If not, it is impossible to divide an UTXO to less than 54600 litoshis. Can anyone explain about this?

I will close here once I get the answer. Please educate me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with sendrawtransaction missing inputs error code -25
Working with Bitcoin-qt 0.16.3 testnet. Attempting to sendrawtransaction , however, receive following error: Missing inputs (code -25).
Read more >
Missing inputs ( code - 25 )- been trying to send BTC for days
It essentially means that inputs that you are attempting to use for your transaction do not exist (or have already been spent). For...
Read more >
"invalid missing inputs code -25" : r/Bitcoin - Reddit
"invalid missing inputs code -25". I created a rawtransaction and tried to submit it with the client via the sendrawtransaction.
Read more >
What does "sendrawtx exit 25, gave error code: -25 error message ...
I'm getting similar, repeated periodically and printed to the console: lightningd(19592): Broadcasting tx : 25 error code: -25 error message: Missing inputs.
Read more >
Error when sending transactions error code: -25 missing inputs
Hi I use zecwallet lite on windows everytime I want to send my coin I got this errorerror code: -25 missing inputs ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found