Skip to content
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

Using unconfirmed utxo as input broadcast transaction failed #178

Open
Dawn-githup opened this issue Jun 19, 2024 · 2 comments
Open

Using unconfirmed utxo as input broadcast transaction failed #178

Dawn-githup opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels

Comments

@Dawn-githup
Copy link


When constructing a transaction using this input, I get the following error:

Error: BtcAssetsAPI returned an error: (400) sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-inputs-missingorspent"}

This is the input used in the transaction:

[
  {
    "hash": "e7bb86c081a833c3092df98b8ca479cf0b30308411d99a243106c2f7f84207ac",
    "index": 0,
    "sequence": 4294967295
  }
]
@Dawn-githup
Copy link
Author

Dawn-githup commented Jun 19, 2024

inputs:

https://mempool.space/testnet/tx/ac0742f8f7c20631249ad9118430300bcf79a48c8bf92d09c333a881c086bbe7

tx.Hex:

02000000000101e7bb86c081a833c3092df98b8ca479cf0b30308411d99a243106c2f7f84207ac0000000000ffffffff022202000000000000160014ea862df068017db9eebbb3eed98712f13e885397f183010000000000160014ea862df068017db9eebbb3eed98712f13e88539702473044022033d788ef3a41a4831d3fdae27948e7bddd1655aca7291f46608b626cac13fa64022041c74f116af27ef46eac04b0c0e7e294a373a254690aa620c59f561e7484b85c0121031c5a0b10c244d18e478cbfd3122c5daff349108afcabfad44acb76f3887e97b300000000

@Dawn-githup
Copy link
Author


If the input's previous transaction was constructed in Unisat and then the second transaction is broadcasted using btc-assets-api, this error occurs:

Error: BtcAssetsAPI returned an error: (400) sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-inputs-missingorspent"}

However, if both transactions are constructed entirely in Unisat or entirely using btc-assets-api, there are no issues.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants