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

Spending URL falsely showing found if the output is not spent but another output in the tx is #1029

Open
ynohtna92 opened this issue Feb 3, 2024 · 1 comment

Comments

@ynohtna92
Copy link

ynohtna92 commented Feb 3, 2024

The spending URL will falsely showing Found even if the output is not spent but another one is of the same tx.

Not sure if this is intentional but it is misleading when using the /:vout: on the url.

Scenario

I have a tx with 4 utxos, 0, 1 and 2 are spent but 3 isn't.

https://ltc1.trezor.io/spending/:hash:/1

Returns:
<a href="/tx/:hash:">Found</a>.

https://ltc1.trezor.io/spending/:hash:/3

Also returns <a href="/tx/:hash:">Found</a>. even if the output is not spent.

@ynohtna92 ynohtna92 changed the title Spending URL falsely showing found if the output is not spent but another in the utxo is Spending URL falsely showing found if the output is not spent but another output in the tx is Feb 3, 2024
@ynohtna92
Copy link
Author

ynohtna92 commented Nov 25, 2024

Bumping this issue, if we could fix or add this endpoint that would be perfect.

https://mempool.space/api/tx/c51bc0aaf2510280ad2e98a1684433545e97a615a64348ff22cdf9b2dfeb90e8/outspend/0

{"spent":true,"txid":"85720ca5b43d162f738ea5da59fcaec2ccbafa8efd351db53615a2cb9a2efe04","vin":7,"status":{"confirmed":true,"block_height":871509,"block_hash":"000000000000000000017be7e4af4897ec2950a5052d6ec2bd78cc7b825714c5","block_time":1732291649}}

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

No branches or pull requests

1 participant