4

Built and signed a native bech32 UTXO, but when I attempt to broadcast from my testnet node using the command sendrawtransaction it returns "missing inputs". I don't have the private keys in my wallet, and the testnet node is still syncing, but I was able to broadcast it fine with a testnet API service that lets you broadcast signed transactions.

Is it possible to broadcast a raw signed transaction to the network while still syncing?

2
  • To clarify, you mean that you want to force your node to broadcast it, right? Otherwise, as you said you could just post the raw transaction to a third party service.
    – Murch
    Nov 21, 2019 at 1:52
  • Precisely......
    – m1xolyd1an
    Nov 21, 2019 at 3:09

1 Answer 1

5

You can only broadcast transactions if your node has synced to the point that it knows the outputs that were spent. This is because your node will always validate a transaction before it broadcasts it. If it has not synced to the point that it knows the outputs that your transaction spent, then it won't have the information necessary in order to validate the transaction.

So if your transaction spends outputs that were recently confirmed, then you will have to wait until it is basically fully synced before you can broadcast. But if your transaction spends very old outputs that are deep in the blockchain, then you can broadcast before it has synced.

1
  • The second paragraph really helps, makes sense.
    – m1xolyd1an
    Nov 21, 2019 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.