For reference, this is the unsigned transaction, would be grateful if someone could analyze it and tell me if something is wrong:
0100000002d89522f8fecd0d83e269909af360551db3810deb2ad7e72a096058dcbe8f2ded0000000000ffffffffd89522f8fecd0d83e269909af360551db3810deb2ad7e72a096058dcbe8f2ded0100000000ffffffff01382d0000000000001976a914fc11decd0e0ab7a332459314069c027328e1dde188ac00000000
This is the error I get from blockstream.info/tx/push when attempting to broadcast the signed transaction:
"sendrawtransaction RPC error -25: bad-txns-inputs-missingorspent"
This is decode result using
https://live.blockcypher.com/btc/decodetx/{
"addresses": [
"1PypgzaAJXHzLPvkLQwWzqwn1AyhJd9YUi"
],
"block_height": -1,
"block_index": -1,
"confirmations": 0,
"double_spend": false,
"fees": 0,
"hash": "4fdb912af649ec80bb3a13f3d42429d69e2069cbd7880ecf87dccc51f875f7fe",
"inputs": [
{
"age": 0,
"output_index": 0,
"prev_hash": "ed2d8fbedc5860092ae7d72aeb0d81b31d5560f39a9069e2830dcdfef82295d8",
"script_type": "empty",
"sequence": 4294967295
},
{
"age": 0,
"output_index": 1,
"prev_hash": "ed2d8fbedc5860092ae7d72aeb0d81b31d5560f39a9069e2830dcdfef82295d8",
"script_type": "empty",
"sequence": 4294967295
}
],
"outputs": [
{
"addresses": [
"1PypgzaAJXHzLPvkLQwWzqwn1AyhJd9YUi"
],
"script": "76a914fc11decd0e0ab7a332459314069c027328e1dde188ac",
"script_type": "pay-to-pubkey-hash",
"value": 11576
}
],
"preference": "low",
"received": "2025-07-17T09:28:27.217923583Z",
"relayed_by": "3.239.97.190",
"size": 126,
"total": 11576,
"ver": 1,
"vin_sz": 2,
"vout_sz": 1,
"vsize": 126
}
prev_hash inside
inputs refer to output from TXID you're trying to spend. But TXID
ed2d8fbedc5860092ae7d72aeb0d81b31d5560f39a9069e2830dcdfef82295d8 isn't exist on Bitcoin blockchain (according to few Bitcoin block explorer). So you're trying to spend non-existent Bitcoin.